aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123@gmail.com>2020-06-08 14:39:13 +0300
committerilyayudovin <ilyayudovin123@gmail.com>2020-06-08 14:39:13 +0300
commit0e84386fe75578bbbf2ac7854467070fe8608cde (patch)
treeabab8c8d84ac3e3cde454ce87d58323ba756f728 /src/index.tsx
parent1a6c64e09af7a67dc5c69ea1e0a799b2795bcbfe (diff)
downloadwhich-ui-0e84386fe75578bbbf2ac7854467070fe8608cde.tar.gz
feat: add profile design and functionality to hide and show profile
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 164c78b..bc6158a 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,7 +59,9 @@ const polls = [{
const useStyles = makeStyles(theme => ({
root: {
+ width: 600,
marginTop: theme.spacing(15),
+ margin: '0 auto',
},
}));
@@ -73,6 +76,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>