File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,13 @@ export default function NavBar(props) {
93
93
< div className = { classes . root } style = { style } >
94
94
< AppBar position = 'static' >
95
95
< Toolbar >
96
- < Avatar src = { greenLogo } > </ Avatar >
97
- < Typography variant = "h6" style = { { marginLeft : '1rem' } } className = { classes . title } >
98
- ReacType
99
- </ Typography >
100
- < div style = { { textDecoration : 'none' } } >
96
+ < Link to = "/" style = { { display : 'inline-flex' , justifyContent : 'center' , textDecoration : 'none' } } >
97
+ < Avatar src = { greenLogo } > </ Avatar >
98
+ < Typography variant = "h6" style = { { marginTop : '0.3rem' , marginLeft : '0.5rem' , color : 'silver' } } className = { classes . title } >
99
+ ReacType
100
+ </ Typography >
101
+ </ Link >
102
+ < div style = { { marginLeft : '0.5rem' , textDecoration : 'none' } } >
101
103
< Button
102
104
variant = 'contained'
103
105
color = 'primary'
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { RootState } from '../../redux/store';
5
5
//commenting out the line below breaks the app
6
6
import logo from '../../public/icons/win/logo.png' ;
7
7
import { useSelector } from 'react-redux' ;
8
+ import { Link } from 'react-router-dom' ;
8
9
9
10
const NavBar = ( props ) => {
10
11
// for dropdown navbar
@@ -22,12 +23,14 @@ const NavBar = (props) => {
22
23
: { backgroundColor : '#151515' }
23
24
}
24
25
>
26
+ < Link to = "/" style = { { textDecoration : 'none' } } >
25
27
< div className = "main-logo" >
26
28
< Avatar src = { logo } > </ Avatar >
27
29
< h1 style = { isDarkMode ? { color : '#C6C6C6' } : { color : '#C6C6C6' } } >
28
30
ReacType
29
31
</ h1 >
30
32
</ div >
33
+ </ Link >
31
34
< div onMouseLeave = { ( ) => setDropMenu ( false ) } >
32
35
< svg
33
36
xmlns = "http://www.w3.org/2000/svg"
You can’t perform that action at this time.
0 commit comments