diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-08-14 05:06:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 05:06:01 +0300 |
commit | a6d2d1d833116772178125b3e047e0811131c0e0 (patch) | |
tree | 022abcb444cda09f98c2d43accc2fdd85aeb2a82 /src/containers/Notifications/Notifications.tsx | |
parent | dc0d09f568ca9eeda4978c4750b548ba81688c23 (diff) | |
parent | 1d35dd8a80f0ea72306e96c2229a27798ec75ce9 (diff) | |
download | which-ui-a6d2d1d833116772178125b3e047e0811131c0e0.tar.gz |
Merge pull request #81 from which-ecosystem/better-ux
Handle empty states
Diffstat (limited to 'src/containers/Notifications/Notifications.tsx')
-rw-r--r-- | src/containers/Notifications/Notifications.tsx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/containers/Notifications/Notifications.tsx b/src/containers/Notifications/Notifications.tsx index 0648eb5..2a9ea13 100644 --- a/src/containers/Notifications/Notifications.tsx +++ b/src/containers/Notifications/Notifications.tsx @@ -1,11 +1,10 @@ import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; -import { Typography } from '@material-ui/core'; +import EmptyState from '../../components/EmptyState/EmptyState'; const useStyles = makeStyles(theme => ({ root: { - marginTop: theme.spacing(25), - textAlign: 'center' + marginTop: theme.spacing(25) } })); @@ -13,9 +12,9 @@ const Notifications: React.FC = () => { const classes = useStyles(); return ( - <Typography variant="h4" className={classes.root}> - Sorry, this page is being constructed yet. - </Typography> + <div className={classes.root}> + <EmptyState variant="construction" message="We are building this page. Stay tuned." /> + </div> ); }; |