diff options
-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> ); |