File tree 2 files changed +22
-12
lines changed
2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 23
23
"comment" : " `proxy` works only on dev mode"
24
24
},
25
25
"scripts" : {
26
- "start" : " PORT=8000 react-scripts start" ,
26
+ "start" : " set PORT=8000 && react-scripts start" ,
27
27
"build" : " react-scripts build" ,
28
28
"test" : " react-scripts test" ,
29
29
"eject" : " react-scripts eject"
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react'
2
2
import styled from 'styled-components'
3
3
4
+ import Appbar from '@material-ui/core/AppBar'
5
+ import Toolbar from '@material-ui/core/Toolbar'
6
+
4
7
import Logo from './Logo'
5
8
import Links from './Links'
6
9
7
- const Container = styled . div . attrs ( {
8
- className : 'container-fluid' ,
9
- } ) ``
10
-
11
10
const Nav = styled . nav . attrs ( {
12
- className : 'navbar navbar-expand-lg navbar-dark bg-dark ' ,
11
+ className : 'navbar navbar-expand-lg navbar-dark' ,
13
12
} ) `
14
13
margin-bottom: 20 px;
15
14
`
16
15
17
16
class NavBar extends Component {
18
17
render ( ) {
19
18
return (
20
- < Container >
19
+ < Appbar position = "static" style = { {
20
+ backgroundColor : "gray"
21
+ } } >
22
+ < Toolbar >
23
+ < Logo />
24
+ < Nav > < Links /> </ Nav >
25
+
26
+ </ Toolbar >
27
+ </ Appbar >
28
+ )
29
+ }
30
+ }
31
+
32
+ export default NavBar
33
+ /*
34
+ <Container>
21
35
<Nav>
22
36
<Logo />
23
37
<Links />
24
38
</Nav>
25
39
</Container>
26
- )
27
- }
28
- }
29
-
30
- export default NavBar
40
+ */
You can’t perform that action at this time.
0 commit comments