aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 8340b79..0d9751c 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -11,6 +11,7 @@ import 'typeface-roboto';
import Header from './Header/Header';
import Feed from './Feed/Feed';
+import ProfileInfo from './ProfileInfo/ProfileInfo';
const theme = createMuiTheme({
palette: {
@@ -58,11 +59,12 @@ const polls = [{
const useStyles = makeStyles({
root: {
- marginTop: theme.spacing(15)
+ width: theme.spacing(75),
+ marginTop: theme.spacing(15),
+ margin: '0 auto'
}
});
-
const App: React.FC = () => {
const [page, setPage] = useState('feed');
const classes = useStyles();
@@ -72,8 +74,10 @@ const App: React.FC = () => {
<CssBaseline />
<Header setPage={setPage} />
<div className={classes.root}>
+ {
+ page === 'profile' && <ProfileInfo profile={polls[0]} />
+ }
<Feed polls={polls} />
- <h1> We are on page {page}! </h1>
</div>
</ThemeProvider>
);