diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-08 15:10:36 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-08 15:10:36 +0300 |
commit | 755b44e76307e04387ddacfdee7124ee00197de4 (patch) | |
tree | 81b0531732eeaa0d9f8884bbd6576f31ae56860c | |
parent | 3d3251cd845294deda81222343ff9a327e5cd1db (diff) | |
download | which-ui-755b44e76307e04387ddacfdee7124ee00197de4.tar.gz |
fix: fix all review comments
-rw-r--r-- | src/index.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx index a7df3c1..0d9751c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -59,7 +59,7 @@ const polls = [{ const useStyles = makeStyles({ root: { - width: 600, + width: theme.spacing(75), marginTop: theme.spacing(15), margin: '0 auto' } @@ -75,10 +75,9 @@ const App: React.FC = () => { <Header setPage={setPage} /> <div className={classes.root}> { - page === 'profile' ? <ProfileInfo profile={polls[0]} /> : null + page === 'profile' && <ProfileInfo profile={polls[0]} /> } <Feed polls={polls} /> - <h1> We are on page {page}! </h1> </div> </ThemeProvider> ); |