diff options
author | eug-vs <eug-vs@keemail.me> | 2020-10-08 12:58:45 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-10-08 12:58:45 +0300 |
commit | 0397903b9046e062fc6adb367183e2169bd4b4b6 (patch) | |
tree | 1c1dc32a8ad1299e278195d07d2f546c20bb871d /src/containers | |
parent | d2146a79fb059cb41d03b16f799f89cbaf1c6312 (diff) | |
download | which-ui-0397903b9046e062fc6adb367183e2169bd4b4b6.tar.gz |
feat: return UserStrip to PollCreation
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/PollCreation/PollCreation.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/containers/PollCreation/PollCreation.tsx b/src/containers/PollCreation/PollCreation.tsx index 079c79f..b7ee00a 100644 --- a/src/containers/PollCreation/PollCreation.tsx +++ b/src/containers/PollCreation/PollCreation.tsx @@ -13,8 +13,10 @@ import { useSnackbar } from 'notistack'; import useS3Preupload from './useS3Preupload'; import ImageInput from './ImageInput'; import ModalScreen from '../../components/ModalScreen/ModalScreen'; +import UserStrip from '../../components/UserStrip/UserStrip'; import { post } from '../../requests'; import { useFeed } from '../../hooks/APIClient'; +import { useAuth } from '../../hooks/useAuth'; const useStyles = makeStyles(theme => ({ @@ -28,6 +30,7 @@ const useStyles = makeStyles(theme => ({ const PollCreation: React.FC = () => { const classes = useStyles(); const history = useHistory(); + const { user } = useAuth(); const { enqueueSnackbar } = useSnackbar(); const { mutate: updateFeed } = useFeed(); const { @@ -67,7 +70,8 @@ const PollCreation: React.FC = () => { return ( <ModalScreen title="Create a poll"> <Container maxWidth="sm" disableGutters> - <Card> + <Card elevation={3}> + {user && <UserStrip user={user} info="" />} <div className={classes.images}> <ImageInput callback={setLeft} progress={leftProgress} /> <ImageInput callback={setRight} progress={rightProgress} /> |