diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-08 14:55:52 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-08 14:55:52 +0300 |
commit | 77fe6ac371160ffc385b1378093f34d0b1f2a8c9 (patch) | |
tree | fe658661325324f1bfe872dedd642120732dd877 /src/index.tsx | |
parent | 73693e619d63d0321848b633bbe0d93eba9dd3bb (diff) | |
download | which-ui-77fe6ac371160ffc385b1378093f34d0b1f2a8c9.tar.gz |
fix: fix eslint errors
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/index.tsx b/src/index.tsx index bc6158a..a7df3c1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -57,15 +57,13 @@ const polls = [{ } }]; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles({ root: { width: 600, marginTop: theme.spacing(15), - margin: '0 auto', - }, -})); - - + margin: '0 auto' + } +}); const App: React.FC = () => { const [page, setPage] = useState('feed'); @@ -77,7 +75,7 @@ const App: React.FC = () => { <Header setPage={setPage} /> <div className={classes.root}> { - page === 'profile' ? <ProfileInfo profile={polls[0]}/> : null + page === 'profile' ? <ProfileInfo profile={polls[0]} /> : null } <Feed polls={polls} /> <h1> We are on page {page}! </h1> |