Skip to content

Commit bd03fc0

Browse files
Update Navbar.js
1 parent f22e26c commit bd03fc0

File tree

1 file changed

+32
-16
lines changed

1 file changed

+32
-16
lines changed
Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
11
import React from 'react'
2-
import {AppBar, Toolbar, Typography, makeStyles} from '@material-ui/core'
2+
import {
3+
AppBar,
4+
Toolbar,
5+
Typography,
6+
makeStyles
7+
} from '@material-ui/core'
38
import CollectionsIcon from '@material-ui/icons/Collections';
49

5-
const useStyle = makeStyles( {
6-
component : {
7-
backgroundColor: '#445A6F',
8-
}
10+
const useStyle = makeStyles({
11+
component: {
12+
backgroundColor: '#445A6F',
13+
}
914
})
1015

1116
const Navbar = () => {
12-
const classes = useStyle();
13-
return (
14-
<AppBar className={classes.component} position='static'>
15-
<Toolbar>
16-
<CollectionsIcon />
17-
<Typography variant="h5" style={{marginLeft : 10}}>
18-
Image Finder
19-
</Typography>
20-
</Toolbar>
21-
</AppBar>
22-
)
17+
const classes = useStyle();
18+
return ( <
19+
AppBar className = {
20+
classes.component
21+
}
22+
position = 'static' >
23+
<
24+
Toolbar >
25+
<
26+
CollectionsIcon / >
27+
<
28+
Typography variant = "h5"
29+
style = {
30+
{
31+
marginLeft: 10
32+
}
33+
} >
34+
Image Finder
35+
</Typography>
36+
</Toolbar>
37+
</AppBar>
38+
)
2339
}
2440

2541
export default Navbar

0 commit comments

Comments
 (0)