diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-01-12 15:35:46 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-01-12 18:11:45 +0300 |
commit | 3ef3cb7f0b25a448e81e5b81738758f4545337cc (patch) | |
tree | 51919958c4c0b3f2bf2f2e0e0cb7b97a09022ad9 /src/index.js | |
parent | c06bce7fdab23e52d33636e3585c86d48c0bfa91 (diff) | |
download | chrono-cube-ui-3ef3cb7f0b25a448e81e5b81738758f4545337cc.tar.gz |
Implement Registration component
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index f90c39a..4db99cf 100644 --- a/src/index.js +++ b/src/index.js @@ -16,6 +16,7 @@ import Profile from "./pages/Profile/Profile"; const App = () => { const [page, setPage] = useState('app'); + const [user, setUser] = useState({ username: 'anonymous', id: null }); const [recentSolutions, setRecentSolutions] = useState([]); const Page = ({ page }) => { @@ -23,6 +24,7 @@ const App = () => { case 'app': return ( <Timer + user={user} recentSolutions={recentSolutions} setRecentSolutions={setRecentSolutions} setPage={setPage} @@ -30,7 +32,7 @@ const App = () => { ); case 'profile': - return <Profile/>; + return <Profile user={user} setUser={setUser} />; case 'scoreboard': return <Scoreboard />; |