-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebe916e
commit 666f99b
Showing
5 changed files
with
64 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Button from "../buttons/Button"; | ||
|
||
interface DummyProps { | ||
onNext: () => void; | ||
} | ||
|
||
function Dummy({ onNext }: DummyProps) { | ||
return ( | ||
// render background image that fills the whole component | ||
<div> | ||
<p>lol no</p> | ||
<Button onClick={onNext} label="Back to Landing" /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Dummy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,35 @@ | ||
import { useState } from 'react'; | ||
import Landing from '../pages/Landing'; | ||
/* import Input from '../pages/Input'; */ | ||
/* import Loading from '../pages/Loading'; */ | ||
/* import Playlist from '../pages/Playlist'; */ | ||
// import Input from '../pages/Input'; | ||
// import Loading from '../pages/Loading'; | ||
// import Playlist from '../pages/Playlist'; | ||
import Dummy from '../pages/Dummy'; | ||
|
||
function Content() { | ||
return ( | ||
<main> | ||
<Landing /> | ||
const [currentPage, setCurrentPage] = useState('landing'); | ||
|
||
const renderPage = () => { | ||
switch (currentPage) { | ||
case 'dummy': | ||
return <Dummy onNext={() => setCurrentPage('landing')} />; | ||
case 'landing': | ||
return <Landing onNext={() => setCurrentPage('dummy')} />; | ||
// case 'input': | ||
// return <Input onNext={() => setCurrentPage('loading')} />; | ||
// case 'loading': | ||
// return <Loading onNext={() => setCurrentPage('playlist')} />; | ||
// case 'playlist': | ||
// return <Playlist />; | ||
default: | ||
return <Dummy onNext={() => setCurrentPage('Landing')} />; | ||
} | ||
}; | ||
|
||
return ( | ||
<main> | ||
{renderPage()} | ||
</main> | ||
) | ||
) | ||
} | ||
|
||
export default Content; |