File tree Expand file tree Collapse file tree 3 files changed +94
-23
lines changed Expand file tree Collapse file tree 3 files changed +94
-23
lines changed Original file line number Diff line number Diff line change 13
13
},
14
14
"dependencies" : {
15
15
"3dmol" : " ^2.4.2" ,
16
- "@diamondlightsource/sci-react-ui" : " ^0.1 .0" ,
16
+ "@diamondlightsource/sci-react-ui" : " ^0.2 .0" ,
17
17
"@emotion/react" : " ^11.14.0" ,
18
18
"@emotion/styled" : " ^11.14.0" ,
19
19
"@h5web/lib" : " ^13.0.0" ,
Original file line number Diff line number Diff line change @@ -18,18 +18,25 @@ export default function Header() {
18
18
const handleLogout = ( ) => window . location . assign ( "/oauth2/sign_out" ) ;
19
19
20
20
return (
21
- < Navbar logo = "theme" >
22
- < SideDrawer />
21
+ < Navbar
22
+ logo = "theme"
23
+ leftSlot = { < SideDrawer /> }
24
+ rightSlot = {
25
+ < >
26
+ < User
27
+ color = "white"
28
+ onLogin = { handleLogin }
29
+ onLogout = { handleLogout }
30
+ user = { user == null ? null : { fedid : user . identifier } }
31
+ />
32
+ < ColourSchemeButton />
33
+ </ >
34
+ }
35
+ containerWidth = { false }
36
+ >
23
37
< Typography variant = "h4" color = { theme . palette . primary . contrastText } >
24
38
Web-CONEXS
25
39
</ Typography >
26
- < User
27
- color = "white"
28
- onLogin = { handleLogin }
29
- onLogout = { handleLogout }
30
- user = { user == null ? null : { fedid : user . identifier } }
31
- />
32
- < ColourSchemeButton />
33
40
</ Navbar >
34
41
) ;
35
42
}
You can’t perform that action at this time.
0 commit comments