aboutsummaryrefslogtreecommitdiff
path: root/src/Header/Header.tsx
diff options
context:
space:
mode:
authorilyayudovin <46264063+ilyayudovin@users.noreply.github.com>2020-06-07 15:29:55 +0300
committerGitHub <noreply@github.com>2020-06-07 15:29:55 +0300
commitce8764580983e0008300bcc88d463da44d94c455 (patch)
tree7a8c780a1c63aa35b774a56acaf2867e78256a93 /src/Header/Header.tsx
parentb4e97d85c0285f1a6cd80f165531ac7bb70de982 (diff)
parent584ca75571a73479ee5379ecf2c0a657de365c53 (diff)
downloadwhich-ui-ce8764580983e0008300bcc88d463da44d94c455.tar.gz
Merge pull request #10 from ilyayudovin/poll-component
Create poll-component
Diffstat (limited to 'src/Header/Header.tsx')
-rw-r--r--src/Header/Header.tsx18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Header/Header.tsx b/src/Header/Header.tsx
index fd2620c..8e8a301 100644
--- a/src/Header/Header.tsx
+++ b/src/Header/Header.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import {
+import {
AppBar,
Toolbar,
Tabs,
@@ -15,23 +15,23 @@ interface PropTypes {
const useStyles = makeStyles(theme => ({
tab: {
'& .MuiTab-wrapper': {
- padding: theme.spacing(2),
- flexDirection: 'row',
- fontSize: '0.8125rem'
+ padding: theme.spacing(2),
+ flexDirection: 'row',
+ fontSize: '0.8125rem'
}
}
}));
-const tabs = ["Profile", "Feed"];
+const tabs = ['Profile', 'Feed'];
-const Header: React.FC<PropTypes> = ({ page, setPage }) => {
+const Header: React.FC<PropTypes> = ({ page /* , setPage */ }) => {
const classes = useStyles();
- const handleChange = () => {}
+ const handleChange = () => {};
return (
<AppBar position="static">
- <Toolbar>
+ <Toolbar>
<Tabs onChange={handleChange} value={page}>
{tabs.map((tab: string) => (
<Tab
@@ -43,7 +43,7 @@ const Header: React.FC<PropTypes> = ({ page, setPage }) => {
</Tabs>
</Toolbar>
</AppBar>
- )
+ );
};
export default Header;