Skip to content

Commit 0727811

Browse files
committed
ref(cmdk) simplify keyboard
1 parent 53f7bdd commit 0727811

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

static/app/components/commandPalette/ui/commandPaletteGlobalActions.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
IconIssues,
2727
IconList,
2828
IconLock,
29+
IconOpen,
2930
IconSearch,
3031
IconSettings,
3132
IconStar,
@@ -224,20 +225,21 @@ export function GlobalCommandPaletteActions() {
224225
{user.isStaff && (
225226
<CMDKAction display={{label: t('Admin')}}>
226227
<CMDKAction
227-
display={{label: t('Open _admin')}}
228+
display={{label: t('Open _admin'), icon: <IconOpen />}}
228229
keywords={[t('superuser')]}
229230
to="/_admin/"
230231
/>
231232
<CMDKAction
232233
display={{
233234
label: t('Open %s in _admin', organization.name),
235+
icon: <IconOpen />,
234236
}}
235237
keywords={[t('superuser')]}
236238
to={`/_admin/customers/${organization.slug}/`}
237239
/>
238240
{!isActiveSuperuser() && (
239241
<CMDKAction
240-
display={{label: t('Open Superuser Modal')}}
242+
display={{label: t('Open Superuser Modal'), icon: <IconLock locked />}}
241243
keywords={[t('superuser')]}
242244
onAction={() => openSudo({isSuperuser: true, needsReload: true})}
243245
/>
@@ -344,7 +346,7 @@ export function GlobalCommandPaletteActions() {
344346
to="https://github.com/getsentry/sentry"
345347
/>
346348
<CMDKAction
347-
display={{label: t('View Changelog')}}
349+
display={{label: t('View Changelog'), icon: <IconOpen />}}
348350
to="https://sentry.io/changelog/"
349351
/>
350352
<CMDKAction

0 commit comments

Comments
 (0)