@@ -37,9 +37,17 @@ import { Avatar } from '../src/avatar';
3737import {
3838 CalculatorIcon ,
3939 CalendarIcon ,
40+ CircleUserIcon ,
41+ CogIcon ,
4042 CreditCardIcon ,
43+ FingerprintIcon ,
44+ FlameIcon ,
45+ KanbanIcon ,
46+ MessageSquareDotIcon ,
4147 SettingsIcon ,
48+ SlidersHorizontalIcon ,
4249 SmileIcon ,
50+ TagIcon ,
4351 UserIcon ,
4452} from 'lucide-react' ;
4553import { Icon } from '../src/icon' ;
@@ -135,45 +143,52 @@ export function CommandPalette() {
135143}
136144
137145const commands2 : Array < {
138- label : string ;
146+ label ? : string ;
139147 items : Array < {
140148 label : string ;
141149 icon : React . ReactNode ;
142150 shortcut ?: string ;
143151 } > ;
144152} > = [
145153 {
146- label : 'Suggestions' ,
147154 items : [
148155 {
149- label : 'Calendar ' ,
150- icon : < CalendarIcon /> ,
156+ label : 'Preferences ' ,
157+ icon : < SlidersHorizontalIcon /> ,
151158 } ,
152159 {
153- label : 'Search Emoji' ,
154- icon : < SmileIcon /> ,
160+ label : 'Profile' ,
161+ icon : < CircleUserIcon /> ,
162+ } ,
163+ {
164+ label : 'Notifications' ,
165+ icon : < MessageSquareDotIcon /> ,
166+ } ,
167+ {
168+ label : 'Security & access' ,
169+ icon : < FingerprintIcon /> ,
155170 } ,
156171 {
157- label : 'Calculator' ,
158- icon : < CalculatorIcon /> ,
172+ label : 'Connected accounts' ,
173+ icon : < CogIcon /> ,
174+ shortcut : '⌘,' ,
159175 } ,
160176 ] ,
161177 } ,
162178 {
163- label : 'Settings ' ,
179+ label : 'Issues ' ,
164180 items : [
165181 {
166- label : 'Profile ' ,
167- icon : < UserIcon /> ,
182+ label : 'Label ' ,
183+ icon : < TagIcon /> ,
168184 } ,
169185 {
170- label : 'Billing ' ,
171- icon : < CreditCardIcon /> ,
186+ label : 'Template ' ,
187+ icon : < KanbanIcon /> ,
172188 } ,
173189 {
174- label : 'Settings' ,
175- icon : < SettingsIcon /> ,
176- shortcut : '⌘,' ,
190+ label : 'SLAs' ,
191+ icon : < FlameIcon /> ,
177192 } ,
178193 ] ,
179194 } ,
@@ -226,17 +241,19 @@ export function CommandJ() {
226241 </ EmptyState >
227242 ) }
228243 >
229- { commands2 . map ( ( group ) => (
230- < MenuSection key = { group . label } title = { group . label } >
231- { group . items . map ( ( { label, icon, shortcut } ) => (
232- < MenuItem key = { label } textValue = { label } >
233- < Icon > { icon } </ Icon >
234- < MenuItemLabel > { label } </ MenuItemLabel >
235- { shortcut && < Kbd outline > { shortcut } </ Kbd > }
236- </ MenuItem >
237- ) ) }
238- </ MenuSection >
239- ) ) }
244+ { commands2 . map ( ( group , index ) => {
245+ return (
246+ < MenuSection key = { index } title = { group . label } >
247+ { group . items . map ( ( { label, icon, shortcut } ) => (
248+ < MenuItem key = { label } textValue = { label } >
249+ < Icon > { icon } </ Icon >
250+ < MenuItemLabel > { label } </ MenuItemLabel >
251+ { shortcut && < Kbd > { shortcut } </ Kbd > }
252+ </ MenuItem >
253+ ) ) }
254+ </ MenuSection >
255+ ) ;
256+ } ) }
240257 </ Menu >
241258 </ Autocomplete >
242259 </ Dialog >
0 commit comments