From 4a9cf28660ed3b7e02952d02035978d1d4ad3e7e Mon Sep 17 00:00:00 2001
From: Piotr Russ <mail@pruss.it>
Date: Wed, 9 Dec 2020 23:26:30 +0100
Subject: add creator 2nd step & onKeyPress helper

---
 client/src/admin/jsx/creator/Creator.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'client/src/admin/jsx/creator/Creator.jsx')

diff --git a/client/src/admin/jsx/creator/Creator.jsx b/client/src/admin/jsx/creator/Creator.jsx
index 896235e..fa552b3 100644
--- a/client/src/admin/jsx/creator/Creator.jsx
+++ b/client/src/admin/jsx/creator/Creator.jsx
@@ -1,15 +1,17 @@
 import React, { useState } from 'react';
 import Step1 from './Step1';
+import Step2 from './Step2';
 import { t, goTo } from '../../hocs';
 
 const Creator = ({projects}) => {
   const [step, setStep] = useState('step1');
+  const [data, setData] = useState({});
 
   switch(step) {
     case 'step1':
-      return <Step1 setStep={setStep} />;
+      return <Step1 setStep={setStep} data={data} setData={setData} />;
     case 'step2':
-      return null;
+      return <Step2 setStep={setStep} data={data} setData={setData} />;
     default:
       return null;
   }
-- 
cgit v1.2.3

