aboutsummaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123@gmail.com>2020-06-30 02:09:37 +0300
committerilyayudovin <ilyayudovin123@gmail.com>2020-06-30 02:09:37 +0300
commit952f8ae3183b062e3b46791c793891f64dc771d5 (patch)
tree8ccf1073a596869215cde6e20b7d9d6848b571e3 /src/pages
parent720a32c4cb1697f3a8f90973f28c334551ab87ff (diff)
downloadwhich-ui-952f8ae3183b062e3b46791c793891f64dc771d5.tar.gz
fix eslint errors
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/FeedPage/PollSubmissionImage.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pages/FeedPage/PollSubmissionImage.tsx b/src/pages/FeedPage/PollSubmissionImage.tsx
index e2ffad3..a8ec437 100644
--- a/src/pages/FeedPage/PollSubmissionImage.tsx
+++ b/src/pages/FeedPage/PollSubmissionImage.tsx
@@ -57,7 +57,6 @@ const PollSubmissionImage: React.FC<PropTypes> = ({ url, setUrl }) => {
<>
<CloudUploadIcon fontSize="large" color="primary" />
<Typography variant="h5"> Upload an image </Typography>
- <UploadImage isOpen={isModalOpen} setIsOpen={setIsModalOpen} callback={setUrl} />
</>
);
@@ -73,9 +72,12 @@ const PollSubmissionImage: React.FC<PropTypes> = ({ url, setUrl }) => {
);
return (
- <CardActionArea onClick={handleClick} className={classes.root}>
- {url ? Media : Upload}
- </CardActionArea>
+ <>
+ <CardActionArea onClick={handleClick} className={classes.root}>
+ {url ? Media : Upload}
+ </CardActionArea>
+ <UploadImage isOpen={isModalOpen} setIsOpen={setIsModalOpen} callback={setUrl} />
+ </>
);
};