diff options
author | eug-vs <eug-vs@keemail.me> | 2020-07-04 00:08:57 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-07-04 00:08:57 +0300 |
commit | b52743cc950e9633a2da41f72d3462286c629967 (patch) | |
tree | baeeb9c1b9111778e8c044c4675803b0a8f29347 /src/components/ScrollTopArrow | |
parent | 2a83b58e40d60dc058f385440a3125c60fb90026 (diff) | |
download | which-ui-b52743cc950e9633a2da41f72d3462286c629967.tar.gz |
style: remove eslint errors
Diffstat (limited to 'src/components/ScrollTopArrow')
-rw-r--r-- | src/components/ScrollTopArrow/ScrollTopArrow.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
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> ); }; |