diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-09-15 00:15:30 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-10-08 22:01:50 +0300 |
commit | 0a23633aa49ece18897a6ceaa56fdd3cd837b8e8 (patch) | |
tree | f91366bf055f50afe5ea5d30bb4a63e6f33c0183 /src/components | |
parent | bdb4d194307c9755c2083c1a11bb876abebcb6de (diff) | |
download | which-ui-0a23633aa49ece18897a6ceaa56fdd3cd837b8e8.tar.gz |
feat: add description to poll
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/PollCard/PollCard.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx index 540679f..e2d06ee 100644 --- a/src/components/PollCard/PollCard.tsx +++ b/src/components/PollCard/PollCard.tsx @@ -42,6 +42,9 @@ const useStyles = makeStyles(theme => ({ height: theme.spacing(2), backgroundColor: theme.palette.primary.light, transitionDuration: '0.5s' + }, + description: { + padding: '0px 16px 10px' } })); @@ -93,6 +96,7 @@ const PollCard: React.FC<PropTypes> = React.memo(({ poll, setPoll }) => { return ( <Card elevation={3}> <UserStrip user={author} info={date} /> + <div className={classes.description}>{poll.description}</div> <div className={classes.media}> <CardActionArea onDoubleClick={handleVote('left')} className={classes.media}> <BackgroundImage src={left.url} /> |