diff options
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/HomePage/HomePage.tsx | 20 | ||||
-rw-r--r-- | src/pages/NotificationsPage/NotificationsPage.tsx | 22 | ||||
-rw-r--r-- | src/pages/Page.tsx | 4 |
3 files changed, 46 insertions, 0 deletions
diff --git a/src/pages/HomePage/HomePage.tsx b/src/pages/HomePage/HomePage.tsx new file mode 100644 index 0000000..6930cc8 --- /dev/null +++ b/src/pages/HomePage/HomePage.tsx @@ -0,0 +1,20 @@ +import React, { useState } from 'react'; +import { Typography } from '@material-ui/core/'; +import { makeStyles } from '@material-ui/core/styles'; + +const useStyles = makeStyles({ +}); + +const HomePage: React.FC = () => { + const classes = useStyles(); + + return ( + <> + <Typography variant="h3"> Which one to choose? </Typography> + + </> + ); +}; + +export default HomePage; + diff --git a/src/pages/NotificationsPage/NotificationsPage.tsx b/src/pages/NotificationsPage/NotificationsPage.tsx new file mode 100644 index 0000000..56243f9 --- /dev/null +++ b/src/pages/NotificationsPage/NotificationsPage.tsx @@ -0,0 +1,22 @@ +import React, { useState } from 'react'; +import { makeStyles } from '@material-ui/core/styles'; +import { Typography } from '@material-ui/core'; + +const useStyles = makeStyles({ + root: { + textAlign: 'center' + } +}); + +const NotificationsPage: React.FC = () => { + const classes = useStyles(); + + return ( + <Typography variant="h4" className={classes.root}> + Sorry, this page is being constructed yet. + </Typography> + ); +}; + +export default NotificationsPage; + diff --git a/src/pages/Page.tsx b/src/pages/Page.tsx index f6353b2..2a09228 100644 --- a/src/pages/Page.tsx +++ b/src/pages/Page.tsx @@ -4,6 +4,8 @@ import { SnackbarProvider } from 'notistack'; import ProfilePage from './ProfilePage/ProfilePage'; import FeedPage from './FeedPage/FeedPage'; import AuthPage from './AuthPage/AuthPage'; +import HomePage from './HomePage/HomePage'; +import NotificationsPage from './NotificationsPage/NotificationsPage'; import { useNavigate } from '../hooks/useNavigate'; const useStyles = makeStyles(theme => ({ @@ -27,9 +29,11 @@ const Page: React.FC = () => { }} > <div className={classes.root}> + { page.prefix === 'home' && <HomePage />} { page.prefix === 'profile' && <ProfilePage />} { page.prefix === 'feed' && <FeedPage /> } { page.prefix === 'auth' && <AuthPage /> } + { page.prefix === 'notifications' && <NotificationsPage /> } </div> </SnackbarProvider> ); |