1
1
import React , { useState } from 'react' ;
2
+
2
3
import Avatar from '@mui/material/Avatar' ;
4
+ import Button from '@mui/material/Button' ;
5
+ import MoreVertIcon from '@mui/icons-material/MoreVert' ;
6
+ import NavBarButtons from './NavBarButtons' ;
3
7
import NavbarDropDown from './NavBarButtons' ;
8
+ import NewExportButton from './NewExportButton' ;
4
9
import { RootState } from '../../redux/store' ;
5
10
import logo from '../../public/icons/win/logo.png' ;
6
- import NewExportButton from './NewExportButton' ;
7
11
import { useSelector } from 'react-redux' ;
8
- import Button from '@mui/material/Button' ;
9
- import MoreVertIcon from '@mui/icons-material/MoreVert' ;
10
- import NavBarButtons from './NavBarButtons' ;
11
12
12
13
const NavBar = ( ) => {
13
14
const [ dropMenu , setDropMenu ] = useState ( false ) ;
14
- const isDarkMode = useSelector ( ( state : RootState ) => state . darkMode . isDarkMode ) ;
15
+ const isDarkMode = useSelector (
16
+ ( state : RootState ) => state . darkMode . isDarkMode
17
+ ) ;
15
18
16
19
const buttonContainerStyle = {
17
20
display : 'flex' ,
18
21
alignItems : 'center' ,
19
- justifyContent : 'flex-start' ,
22
+ justifyContent : 'flex-start'
20
23
} ;
21
24
22
25
const buttonStyle = {
@@ -27,30 +30,39 @@ const NavBar = () => {
27
30
padding : '8px 12px' ,
28
31
cursor : 'pointer' ,
29
32
marginRight : '10px' ,
30
- marginLeft : '5px' ,
31
- borderRadius : '4px' ,
33
+ marginLeft : '5px' ,
34
+ borderRadius : '4px'
32
35
} ;
33
36
34
37
const moreVertButtonStyle = {
35
38
backgroundColor : '#333' ,
36
39
border : '1px solid #333' ,
37
40
padding : '0' ,
38
41
cursor : 'pointer' ,
39
- display : 'flex' ,
40
- alignItems : 'center' ,
41
- justifyContent : 'flex-start' ,
42
+ display : 'flex' ,
43
+ alignItems : 'center' ,
44
+ justifyContent : 'flex-start' ,
42
45
borderRadius : '4px' ,
43
- width : '30px' ,
46
+ width : '30px' ,
44
47
minWidth : '20px' ,
45
- marginLeft : '0px' ,
46
- marginRight : '10px' ,
48
+ marginLeft : '0px' ,
49
+ marginRight : '10px'
47
50
} ;
48
51
49
52
return (
50
- < nav className = "main-navbar" style = { isDarkMode ? { backgroundColor : '#013365' } : { backgroundColor : 'white' } } >
53
+ < nav
54
+ className = "main-navbar"
55
+ style = {
56
+ isDarkMode
57
+ ? { backgroundColor : '#013365' }
58
+ : { backgroundColor : '#151515' }
59
+ }
60
+ >
51
61
< div className = "main-logo" >
52
62
< Avatar src = { logo } > </ Avatar >
53
- < h1 style = { isDarkMode ? { color : 'white' } : { color : '#013365' } } > ReacType</ h1 >
63
+ < h1 style = { isDarkMode ? { color : 'white' } : { color : 'white' } } >
64
+ ReacType
65
+ </ h1 >
54
66
</ div >
55
67
< div style = { buttonContainerStyle } >
56
68
< button style = { buttonStyle } > Share</ button >
@@ -63,7 +75,11 @@ const NavBar = () => {
63
75
>
64
76
< MoreVertIcon style = { { color : 'white' } } />
65
77
</ Button >
66
- < NavBarButtons dropMenu = { dropMenu } setDropMenu = { setDropMenu } style = { { color : 'white' } } />
78
+ < NavBarButtons
79
+ dropMenu = { dropMenu }
80
+ setDropMenu = { setDropMenu }
81
+ style = { { color : 'white' } }
82
+ />
67
83
</ div >
68
84
</ nav >
69
85
) ;
0 commit comments