From 2247e281f7f1c8c59ff758053dcb7b2c4f28d4a9 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 3 Jul 2020 19:02:06 +0300 Subject: feat: create a bunch of empty pages --- src/pages/HomePage/HomePage.tsx | 20 ++++++++++++++++++++ src/pages/NotificationsPage/NotificationsPage.tsx | 22 ++++++++++++++++++++++ src/pages/Page.tsx | 4 ++++ 3 files changed, 46 insertions(+) create mode 100644 src/pages/HomePage/HomePage.tsx create mode 100644 src/pages/NotificationsPage/NotificationsPage.tsx (limited to 'src/pages') 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 ( + <> + Which one to choose? + + + ); +}; + +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 ( + + Sorry, this page is being constructed yet. + + ); +}; + +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 = () => { }} >
+ { page.prefix === 'home' && } { page.prefix === 'profile' && } { page.prefix === 'feed' && } { page.prefix === 'auth' && } + { page.prefix === 'notifications' && }
); -- cgit v1.2.3