diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-16 22:17:21 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-16 22:17:21 +0300 |
commit | b58fc84bbb7460275843cd5b99e145be2797ee42 (patch) | |
tree | 4e5a5a9f549f5e8d721310f37941b57d2ba8b12a /src/index.tsx | |
parent | 0e7c2d476225b3e381a86710a3635ab707387499 (diff) | |
download | which-ui-b58fc84bbb7460275843cd5b99e145be2797ee42.tar.gz |
feat: add scroll to top button
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/index.tsx b/src/index.tsx index a06ec62..1777e90 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -15,6 +15,7 @@ import FeedPage from './pages/FeedPage/FeedPage'; import AuthPage from './pages/AuthPage/AuthPage'; import { User, Page } from './types'; import { get, post } from './requests'; +import ScrollTopArrow from './components/ScrollTopArrow/ScrollTopArrow'; const theme = createMuiTheme({ @@ -93,7 +94,9 @@ const App: React.FC = () => { { page.prefix === 'feed' && <FeedPage navigate={navigate} /> } { page.prefix === 'auth' && <AuthPage logIn={logIn} /> } </div> + <ScrollTopArrow /> </ThemeProvider> + ); }; |