aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 8340b79..d32a701 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: 600,
+ marginTop: theme.spacing(15),
+ margin: '0 auto',
+ },
+}));
+
const App: React.FC = () => {
const [page, setPage] = useState('feed');
const classes = useStyles();
@@ -72,6 +74,9 @@ const App: React.FC = () => {
<CssBaseline />
<Header setPage={setPage} />
<div className={classes.root}>
+ {
+ page === 'profile' ? <ProfileInfo profile={polls[0]}/> : null
+ }
<Feed polls={polls} />
<h1> We are on page {page}! </h1>
</div>