Show icons for navigate commands (#2184)
- show icons for navigate commands
This commit is contained in:
@ -150,6 +150,7 @@ export const CommandMenu = () => {
|
|||||||
to={cmd.to}
|
to={cmd.to}
|
||||||
key={cmd.label}
|
key={cmd.label}
|
||||||
label={cmd.label}
|
label={cmd.label}
|
||||||
|
Icon={cmd.Icon}
|
||||||
onClick={cmd.onCommandClick}
|
onClick={cmd.onCommandClick}
|
||||||
shortcuts={cmd.shortcuts || []}
|
shortcuts={cmd.shortcuts || []}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -1,3 +1,11 @@
|
|||||||
|
import {
|
||||||
|
IconBuildingSkyscraper,
|
||||||
|
IconCheckbox,
|
||||||
|
IconSettings,
|
||||||
|
IconTargetArrow,
|
||||||
|
IconUser,
|
||||||
|
} from '@/ui/display/icon';
|
||||||
|
|
||||||
import { Command, CommandType } from '../types/Command';
|
import { Command, CommandType } from '../types/Command';
|
||||||
|
|
||||||
export const commandMenuCommands: Command[] = [
|
export const commandMenuCommands: Command[] = [
|
||||||
@ -6,29 +14,34 @@ export const commandMenuCommands: Command[] = [
|
|||||||
label: 'Go to People',
|
label: 'Go to People',
|
||||||
type: CommandType.Navigate,
|
type: CommandType.Navigate,
|
||||||
shortcuts: ['G', 'P'],
|
shortcuts: ['G', 'P'],
|
||||||
|
Icon: IconUser,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: '/companies',
|
to: '/companies',
|
||||||
label: 'Go to Companies',
|
label: 'Go to Companies',
|
||||||
type: CommandType.Navigate,
|
type: CommandType.Navigate,
|
||||||
shortcuts: ['G', 'C'],
|
shortcuts: ['G', 'C'],
|
||||||
|
Icon: IconBuildingSkyscraper,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: '/opportunities',
|
to: '/opportunities',
|
||||||
label: 'Go to Opportunities',
|
label: 'Go to Opportunities',
|
||||||
type: CommandType.Navigate,
|
type: CommandType.Navigate,
|
||||||
shortcuts: ['G', 'O'],
|
shortcuts: ['G', 'O'],
|
||||||
|
Icon: IconTargetArrow,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: '/settings/profile',
|
to: '/settings/profile',
|
||||||
label: 'Go to Settings',
|
label: 'Go to Settings',
|
||||||
type: CommandType.Navigate,
|
type: CommandType.Navigate,
|
||||||
shortcuts: ['G', 'S'],
|
shortcuts: ['G', 'S'],
|
||||||
|
Icon: IconSettings,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: '/tasks',
|
to: '/tasks',
|
||||||
label: 'Go to Tasks',
|
label: 'Go to Tasks',
|
||||||
type: CommandType.Navigate,
|
type: CommandType.Navigate,
|
||||||
shortcuts: ['G', 'T'],
|
shortcuts: ['G', 'T'],
|
||||||
|
Icon: IconCheckbox,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user