aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/Header/Header.tsx3
-rw-r--r--src/components/PollCard/PollCard.tsx2
-rw-r--r--src/components/ScrollTopArrow/ScrollTopArrow.tsx9
-rw-r--r--src/pages/FeedPage/PollSubmission.tsx2
4 files changed, 10 insertions, 6 deletions
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx
index bf831d4..41aeec7 100644
--- a/src/components/Header/Header.tsx
+++ b/src/components/Header/Header.tsx
@@ -78,7 +78,8 @@ const Header: React.FC = () => {
const ProfileButton = (
<IconButton onClick={handleProfile}>
- { user?.avatarUrl
+ {
+ user?.avatarUrl
? <Avatar className={classes.round} src={user?.avatarUrl} />
: <AccountCircle />
}
diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx
index ca85d11..98ae001 100644
--- a/src/components/PollCard/PollCard.tsx
+++ b/src/components/PollCard/PollCard.tsx
@@ -27,7 +27,7 @@ const DATE_FORMAT = {
const useStyles = makeStyles(theme => ({
images: {
- height: theme.spacing(50),
+ height: theme.spacing(50)
},
imagesBlock: {
display: 'flex'
diff --git a/src/components/ScrollTopArrow/ScrollTopArrow.tsx b/src/components/ScrollTopArrow/ScrollTopArrow.tsx
index dfa573f..08b8591 100644
--- a/src/components/ScrollTopArrow/ScrollTopArrow.tsx
+++ b/src/components/ScrollTopArrow/ScrollTopArrow.tsx
@@ -27,7 +27,7 @@ const ScrollTopArrow: React.FC = () => {
const [showScroll, setShowScroll] = useState(false);
const theme = useTheme();
const classes = useStyles();
- const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
+ const isMobile = useMediaQuery(theme.breakpoints.down('sm'));
const checkScrollTop = () => {
if (!showScroll && window.pageYOffset > 400) {
@@ -45,8 +45,11 @@ const ScrollTopArrow: React.FC = () => {
return (
<div className={classes.root}>
- {showScroll && !isMobile &&
- <ArrowUpwardIcon className={classes.icon} color="primary" onClick={scrollTop} />}
+ {
+ showScroll
+ && !isMobile
+ && <ArrowUpwardIcon className={classes.icon} color="primary" onClick={scrollTop} />
+ }
</div>
);
};
diff --git a/src/pages/FeedPage/PollSubmission.tsx b/src/pages/FeedPage/PollSubmission.tsx
index 5c8efbb..347eecc 100644
--- a/src/pages/FeedPage/PollSubmission.tsx
+++ b/src/pages/FeedPage/PollSubmission.tsx
@@ -25,7 +25,7 @@ const useStyles = makeStyles(theme => ({
},
images: {
height: theme.spacing(50),
- display: 'flex',
+ display: 'flex'
}
}));