From 4d642e312ed728ad51c454d1e2a0b7bb350fc174 Mon Sep 17 00:00:00 2001
From: Piotr Russ <mail@pruss.it>
Date: Sun, 6 Dec 2020 23:49:13 +0100
Subject: first creator page

---
 client/src/admin/jsx/App.jsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'client/src/admin/jsx/App.jsx')

diff --git a/client/src/admin/jsx/App.jsx b/client/src/admin/jsx/App.jsx
index 1bb224f..cb82e90 100644
--- a/client/src/admin/jsx/App.jsx
+++ b/client/src/admin/jsx/App.jsx
@@ -3,9 +3,10 @@ import ReactDOM from 'react-dom';
 
 import "../scss/index.scss";
 
-import TopBar from './TopBar.jsx';
-import Info from './Info.jsx';
+import TopBar from './layout/TopBar.jsx';
+import Info from './layout/Info.jsx';
 import MainScreen from './MainScreen.jsx';
+import Creator from './creator/Creator.jsx';
 import Context from '../context';
 import { defaultLanguage } from '../data/translations';
 import { getUser, setDbLang } from '../api';
@@ -33,11 +34,12 @@ const App = () => {
   }, [user]);
 
   return (
-    <Context.Provider value={{ lang, setHover, setInfo }}>
+    <Context.Provider value={{ lang, setHover, setInfo, setView }}>
       <div className="main">
         <TopBar lang={lang} setLang={setLangWithDb} user={user} setUser={setUser} />
         <div className="main__content">
           { view === 'main' && <MainScreen projects={projects} /> }
+          { view === 'creator' && <Creator projects={projects} /> }
         </div>
         <Info info={info} hover={hover} />
       </div>
-- 
cgit v1.2.3

