aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-07 19:34:14 +0300
committereug-vs <eug-vs@keemail.me>2020-06-07 19:38:52 +0300
commit26911f1e971b798aac51e15ae3b54a4f40dd334a (patch)
treec6fc3fa5c9524c1742b603c63f2f75d0bff88b5a /src/index.tsx
parent4a6ba7568598bf39fc3be775c22929ebfb8fc78f (diff)
downloadwhich-ui-26911f1e971b798aac51e15ae3b54a4f40dd334a.tar.gz
feat: change pages in header
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index.tsx b/src/index.tsx
index b0a8fdc..48bad48 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -13,7 +13,7 @@ const theme = createMuiTheme({
palette: {
primary: {
main: teal[700]
- },
+ }
}
});
@@ -43,8 +43,9 @@ const App: React.FC = () => {
return (
<ThemeProvider theme={theme}>
<CssBaseline />
- <Header />
+ <Header setPage={setPage} />
<PollCard author={pollProps.author} contents={pollProps.contents} />
+ <h1> We are on page {page}! </h1>
</ThemeProvider>
);
};