Show icons for navigate commands (#2184)

- show icons for navigate commands
This commit is contained in:
brendanlaschke
2023-10-23 10:28:01 +02:00
committed by GitHub
parent 42af74eb46
commit c80eb5c0b0
2 changed files with 14 additions and 0 deletions

View File

@ -150,6 +150,7 @@ export const CommandMenu = () => {
to={cmd.to}
key={cmd.label}
label={cmd.label}
Icon={cmd.Icon}
onClick={cmd.onCommandClick}
shortcuts={cmd.shortcuts || []}
/>

View File

@ -1,3 +1,11 @@
import {
IconBuildingSkyscraper,
IconCheckbox,
IconSettings,
IconTargetArrow,
IconUser,
} from '@/ui/display/icon';
import { Command, CommandType } from '../types/Command';
export const commandMenuCommands: Command[] = [
@ -6,29 +14,34 @@ export const commandMenuCommands: Command[] = [
label: 'Go to People',
type: CommandType.Navigate,
shortcuts: ['G', 'P'],
Icon: IconUser,
},
{
to: '/companies',
label: 'Go to Companies',
type: CommandType.Navigate,
shortcuts: ['G', 'C'],
Icon: IconBuildingSkyscraper,
},
{
to: '/opportunities',
label: 'Go to Opportunities',
type: CommandType.Navigate,
shortcuts: ['G', 'O'],
Icon: IconTargetArrow,
},
{
to: '/settings/profile',
label: 'Go to Settings',
type: CommandType.Navigate,
shortcuts: ['G', 'S'],
Icon: IconSettings,
},
{
to: '/tasks',
label: 'Go to Tasks',
type: CommandType.Navigate,
shortcuts: ['G', 'T'],
Icon: IconCheckbox,
},
];