File tree 1 file changed +21
-21
lines changed
1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,20 @@ function DropdownMenu({ children }: { children: React.ReactNode }) {
18
18
) ;
19
19
}
20
20
21
+ function DropdownMenuItem ( {
22
+ children,
23
+ to,
24
+ } : {
25
+ to : string ;
26
+ children : React . ReactNode ;
27
+ } ) {
28
+ return (
29
+ < Link to = { to } className = "block px-5 py-3 text-gray-700 hover:bg-blue-50" >
30
+ { children }
31
+ </ Link >
32
+ ) ;
33
+ }
34
+
21
35
export function Header ( { hasError } : { hasError ?: boolean } ) {
22
36
return (
23
37
< header className = "flex-shrink-0 h-16 px-3 items-center flex w-full bg-teal-25 opacity-1 border-b-blue-200 border-b" >
@@ -41,36 +55,22 @@ export function Header({ hasError }: { hasError?: boolean }) {
41
55
< div className = "flex items-center relative group" >
42
56
< HeaderMenuItem > Certificates</ HeaderMenuItem >
43
57
< DropdownMenu >
44
- < Link
45
- to = "/certificates"
46
- className = "block px-5 py-3 text-gray-700 hover:bg-blue-50"
47
- >
48
- Download
49
- </ Link >
50
- < Link
51
- to = "/certificates/security"
52
- className = "block px-5 py-3 text-gray-700 hover:bg-blue-50"
53
- >
58
+ < DropdownMenuItem to = "/certificates" > Download</ DropdownMenuItem >
59
+ < DropdownMenuItem to = "/certificates/security" >
54
60
Certificate Security
55
- </ Link >
61
+ </ DropdownMenuItem >
56
62
</ DropdownMenu >
57
63
</ div >
58
64
< div className = "flex items-center relative group" >
59
65
< HeaderMenuItem > Help</ HeaderMenuItem >
60
66
61
67
< DropdownMenu >
62
- < Link
63
- to = "/help/continue-setup"
64
- className = "block px-5 py-3 text-gray-700 hover:bg-blue-50"
65
- >
68
+ < DropdownMenuItem to = "/help/continue-setup" >
66
69
Continue Setup
67
- </ Link >
68
- < Link
69
- to = "/help/copilot-setup"
70
- className = "block px-5 py-3 text-gray-700 hover:bg-blue-50"
71
- >
70
+ </ DropdownMenuItem >
71
+ < DropdownMenuItem to = "/help/copilot-setup" >
72
72
Copilot Setup
73
- </ Link >
73
+ </ DropdownMenuItem >
74
74
</ DropdownMenu >
75
75
</ div >
76
76
You can’t perform that action at this time.
0 commit comments