This repository was archived by the owner on Jul 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +41
-19
lines changed Expand file tree Collapse file tree 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";
33import { DropdownMenu } from "../../../components/HoverPopover" ;
44import { Separator , ButtonDarkMode } from "@stacklok/ui-kit" ;
55import { WorkspacesSelection } from "@/features/workspace/components/workspaces-selection" ;
6- import { CERTIFICATE_MENU_ITEMS } from "../constants/certificate-menu-items" ;
76import { HELP_MENU_ITEMS } from "../constants/help-menu-items" ;
87import { HeaderStatusMenu } from "./header-status-menu" ;
8+ import { SETTINGS_MENU_ITEMS } from "../constants/settings-menu-items" ;
99
1010function HomeLink ( ) {
1111 return (
@@ -39,8 +39,8 @@ export function Header({ hasError }: { hasError?: boolean }) {
3939 </ div >
4040 < div className = "flex items-center gap-1 mr-2" >
4141 < HeaderStatusMenu />
42- < DropdownMenu title = "Certificates" items = { CERTIFICATE_MENU_ITEMS } />
4342 < DropdownMenu title = "Help" items = { HELP_MENU_ITEMS } />
43+ < DropdownMenu title = "Settings" items = { SETTINGS_MENU_ITEMS } />
4444
4545 < ButtonDarkMode />
4646 </ 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