@@ -17,80 +17,82 @@ export default ({ platforms }: Props): JSX.Element => {
1717 const [ currentPlatform ] = usePlatform ( null , false ) ;
1818
1919 return (
20- < nav className = "collapse navbar-collapse content-max" id = "navbar-menu" >
21- < Search path = { location . pathname } platforms = { platforms } />
22- < Nav className = "justify-content-end" style = { { flex : 1 } } >
23- < Nav . Item >
24- < SmartLink className = "nav-link" to = "/product/" >
25- Product
26- </ SmartLink >
27- </ Nav . Item >
28- < NavDropdown
29- title = {
30- currentPlatform ? (
31- < React . Fragment >
20+ < div className = "navbar navbar-expand-md navbar-light global-header" >
21+ < div className = "collapse navbar-collapse content-max" id = "navbar-menu" >
22+ < Search path = { location . pathname } platforms = { platforms } />
23+ < Nav className = "justify-content-end" style = { { flex : 1 } } >
24+ < Nav . Item >
25+ < SmartLink className = "nav-link" to = "/product/" >
26+ Product
27+ </ SmartLink >
28+ </ Nav . Item >
29+ < NavDropdown
30+ title = {
31+ currentPlatform ? (
32+ < React . Fragment >
33+ < PlatformIcon
34+ platform = { currentPlatform . key }
35+ size = { 16 }
36+ style = { { marginRight : "0.5rem" } }
37+ format = "lg"
38+ />
39+ { currentPlatform . title }
40+ </ React . Fragment >
41+ ) : (
42+ "Platforms"
43+ )
44+ }
45+ id = "platforms"
46+ >
47+ { platformList . map ( platform => (
48+ < SmartLink
49+ className = { `dropdown-item ${
50+ currentPlatform && currentPlatform . key == platform . key
51+ ? "active"
52+ : ""
53+ } `}
54+ key = { platform . key }
55+ to = { platform . url }
56+ >
3257 < PlatformIcon
33- platform = { currentPlatform . key }
58+ platform = { platform . key }
3459 size = { 16 }
3560 style = { { marginRight : "0.5rem" } }
3661 format = "lg"
3762 />
38- { currentPlatform . title }
39- </ React . Fragment >
40- ) : (
41- "Platforms"
42- )
43- }
44- id = "platforms"
45- >
46- { platformList . map ( platform => (
47- < SmartLink
48- className = { `dropdown-item ${
49- currentPlatform && currentPlatform . key == platform . key
50- ? "active"
51- : ""
52- } `}
53- key = { platform . key }
54- to = { platform . url }
55- >
56- < PlatformIcon
57- platform = { platform . key }
58- size = { 16 }
59- style = { { marginRight : "0.5rem" } }
60- format = "lg"
61- />
62- { platform . title }
63+ { platform . title }
64+ </ SmartLink >
65+ ) ) }
66+ < NavDropdown . Divider />
67+ < SmartLink className = "dropdown-item" to = "/platforms/" >
68+ Show all platforms
69+ </ SmartLink >
70+ </ NavDropdown >
71+ < Nav . Item >
72+ < SmartLink className = "nav-link" to = "/api/" >
73+ API
6374 </ SmartLink >
64- ) ) }
65- < NavDropdown . Divider />
66- < SmartLink className = "dropdown-item" to = "/platforms/" >
67- Show all platforms
68- </ SmartLink >
69- </ NavDropdown >
70- < Nav . Item >
71- < SmartLink className = "nav-link" to = "/api/" >
72- API
73- </ SmartLink >
74- </ Nav . Item >
75- < Nav . Item >
76- < Nav . Link href = "https://sentry.io/" >
77- Sign In
78- < svg
79- width = "1em"
80- height = "1em"
81- viewBox = "0 0 16 16"
82- className = "bi bi-arrow-right-short"
83- fill = "currentColor"
84- xmlns = "http://www.w3.org/2000/svg"
85- >
86- < path
87- fillRule = "evenodd"
88- d = "M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
89- />
90- </ svg >
91- </ Nav . Link >
92- </ Nav . Item >
93- </ Nav >
94- </ nav >
75+ </ Nav . Item >
76+ < Nav . Item >
77+ < Nav . Link href = "https://sentry.io/" >
78+ Sign In
79+ < svg
80+ width = "1em"
81+ height = "1em"
82+ viewBox = "0 0 16 16"
83+ className = "bi bi-arrow-right-short"
84+ fill = "currentColor"
85+ xmlns = "http://www.w3.org/2000/svg"
86+ >
87+ < path
88+ fillRule = "evenodd"
89+ d = "M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
90+ />
91+ </ svg >
92+ </ Nav . Link >
93+ </ Nav . Item >
94+ </ Nav >
95+ </ div >
96+ </ div >
9597 ) ;
9698} ;
0 commit comments