File tree 3 files changed +41
-19
lines changed
3 files changed +41
-19
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { SidebarTrigger } from "../../../components/ui/sidebar";
3
3
import { DropdownMenu } from "../../../components/HoverPopover" ;
4
4
import { Separator , ButtonDarkMode } from "@stacklok/ui-kit" ;
5
5
import { WorkspacesSelection } from "@/features/workspace/components/workspaces-selection" ;
6
- import { CERTIFICATE_MENU_ITEMS } from "../constants/certificate-menu-items" ;
7
6
import { HELP_MENU_ITEMS } from "../constants/help-menu-items" ;
8
7
import { HeaderStatusMenu } from "./header-status-menu" ;
8
+ import { SETTINGS_MENU_ITEMS } from "../constants/settings-menu-items" ;
9
9
10
10
function HomeLink ( ) {
11
11
return (
@@ -39,8 +39,8 @@ export function Header({ hasError }: { hasError?: boolean }) {
39
39
</ div >
40
40
< div className = "flex items-center gap-1 mr-2" >
41
41
< HeaderStatusMenu />
42
- < DropdownMenu title = "Certificates" items = { CERTIFICATE_MENU_ITEMS } />
43
42
< DropdownMenu title = "Help" items = { HELP_MENU_ITEMS } />
43
+ < DropdownMenu title = "Settings" items = { SETTINGS_MENU_ITEMS } />
44
44
45
45
< ButtonDarkMode />
46
46
</ div >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { OptionsSchema } from "@stacklok/ui-kit" ;
2
+ import {
3
+ Download01 ,
4
+ LayersThree01 ,
5
+ ShieldTick ,
6
+ } from "@untitled-ui/icons-react" ;
7
+
8
+ export const SETTINGS_MENU_ITEMS = [
9
+ {
10
+ textValue : "Providers" ,
11
+ id : "providers" ,
12
+ items : [
13
+ {
14
+ icon : < LayersThree01 /> ,
15
+ id : "providers" ,
16
+ href : "/providers" ,
17
+ textValue : "Providers" ,
18
+ } ,
19
+ ] ,
20
+ } ,
21
+ {
22
+ textValue : "Certificates" ,
23
+ id : "certificates" ,
24
+ items : [
25
+ {
26
+ icon : < ShieldTick /> ,
27
+ id : "about-certificate-security" ,
28
+ href : "/certificates/security" ,
29
+ textValue : "About certificate security" ,
30
+ } ,
31
+ {
32
+ icon : < Download01 /> ,
33
+ id : "download-certificates" ,
34
+ href : "/certificates" ,
35
+ textValue : "Download certificates" ,
36
+ } ,
37
+ ] ,
38
+ } ,
39
+ ] as const satisfies OptionsSchema < "menu" > [ ] ;
You can’t perform that action at this time.
0 commit comments