diff options
author | eug-vs <eug-vs@keemail.me> | 2020-10-07 23:51:45 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-10-07 23:51:45 +0300 |
commit | a283d4310c11f03fe9ff889c6274798b70cf6a19 (patch) | |
tree | 8c21d1ea50d615a466ddd88143bde274abf14256 /src/containers/Page | |
parent | 4471fef74dfe312a8cf6a1440f5a703e897af136 (diff) | |
download | which-ui-a283d4310c11f03fe9ff889c6274798b70cf6a19.tar.gz |
feat: create ModalScreen component
Diffstat (limited to 'src/containers/Page')
-rw-r--r-- | src/containers/Page/Page.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/containers/Page/Page.tsx b/src/containers/Page/Page.tsx index 51b6d21..b7e1938 100644 --- a/src/containers/Page/Page.tsx +++ b/src/containers/Page/Page.tsx @@ -36,11 +36,7 @@ const Page: React.FC = () => { const isMobile = useMediaQuery(theme.breakpoints.down('sm')); useEffect(() => history.listen((update: HistoryChange) => { - console.log(update) - if (!update.state?.background) { - console.log('scrolling') - window.scrollTo(0, 0); - } + if (!update.state?.background) window.scrollTo(0, 0); }), [history]); return ( |