aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2019-12-31 16:24:00 +0300
committerEug-VS <eug-vs@keemail.me>2019-12-31 16:24:00 +0300
commit7d09949d8903aca282e4349e1ccfd589e59a4624 (patch)
tree1c8ff8d7c46a370cfe5816dd8f58237445e93a8a
parent7be26fd020c7a77143fbe1caebed45adcdc53809 (diff)
downloadchrono-cube-ui-7d09949d8903aca282e4349e1ccfd589e59a4624.tar.gz
Use AppBar and wrap the Tabs in a styled component
-rw-r--r--src/components/Header.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/components/Header.js b/src/components/Header.js
index 4eceb6d..cd217fc 100644
--- a/src/components/Header.js
+++ b/src/components/Header.js
@@ -1,23 +1,26 @@
import React from "react";
-import { Tab, Tabs, Typography } from "@material-ui/core";
+import {
+ AppBar,
+ Tabs,
+ Tab,
+ Typography
+} from "@material-ui/core";
import styled from 'styled-components';
const Header = () => (
- <HeaderWrapper>
- <Tabs>
+ <AppBar position="static">
+ <TabsWrapper>
<Typography variant="h4" id="logo"> ChronoCube </Typography>
<Tab label="Home" />
<Tab label="App" />
<Tab label="Scoreboard" />
<Tab label="News" />
- </Tabs>
- </HeaderWrapper>
-
+ </TabsWrapper>
+ </AppBar>
);
-const HeaderWrapper = styled.div`
+const TabsWrapper = styled(Tabs)`
border-bottom: 1px solid black;
- background-color: darkgrey;
& .MuiTab-wrapper {
padding: 10px;
}