aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/Page.tsx')
-rw-r--r--src/pages/Page.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pages/Page.tsx b/src/pages/Page.tsx
index 4c46ea8..91b7214 100644
--- a/src/pages/Page.tsx
+++ b/src/pages/Page.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { SnackbarProvider } from 'notistack';
-import { isMobile } from 'react-device-detect';
import ProfilePage from './ProfilePage/ProfilePage';
import FeedPage from './FeedPage/FeedPage';
@@ -13,7 +12,12 @@ import { useNavigate } from '../hooks/useNavigate';
const useStyles = makeStyles(theme => ({
root: {
- margin: isMobile ? theme.spacing(2) : theme.spacing(15, 5, 5, 8)
+ [theme.breakpoints.down('sm')]: {
+ margin: theme.spacing(2)
+ },
+ [theme.breakpoints.up('md')]: {
+ margin: theme.spacing(15, 5, 5, 8)
+ }
}
}));