Files
twenty/front/src/modules/command-menu/constants/commandMenuCommands.ts
Kanav Arora 74e2464939 2495 fix cmdk removal and added toggle functionality (#2528)
* 2495-fix(front): cmdk removed; custom styles added

* 2495-fix(front): search issue fixed

* 2495-feat(front): Menu toggle funct added

* 2495-fix(front): onclick handler added

* 2495-fix(front): Focus with ArrowKeys added; cmdk removed

* Remove cmdk

* Introduce Selectable list

* Improve api

* Improve api

* Complete refactoring

* Fix ui regressions

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-28 18:50:23 +01:00

58 lines
1.2 KiB
TypeScript

import {
IconBuildingSkyscraper,
IconCheckbox,
IconSettings,
IconTargetArrow,
IconUser,
} from '@/ui/display/icon';
import { Command, CommandType } from '../types/Command';
export const commandMenuCommands: Command[] = [
{
id: 'go-to-people',
to: '/objects/people',
label: 'Go to People',
type: CommandType.Navigate,
firstHotKey: 'G',
secondHotKey: 'P',
Icon: IconUser,
},
{
id: 'go-to-companies',
to: '/objects/companies',
label: 'Go to Companies',
type: CommandType.Navigate,
firstHotKey: 'G',
secondHotKey: 'C',
Icon: IconBuildingSkyscraper,
},
{
id: 'go-to-activities',
to: '/objects/opportunities',
label: 'Go to Opportunities',
type: CommandType.Navigate,
firstHotKey: 'G',
secondHotKey: 'O',
Icon: IconTargetArrow,
},
{
id: 'go-to-settings',
to: '/settings/profile',
label: 'Go to Settings',
type: CommandType.Navigate,
firstHotKey: 'G',
secondHotKey: 'S',
Icon: IconSettings,
},
{
id: 'go-to-tasks',
to: '/tasks',
label: 'Go to Tasks',
type: CommandType.Navigate,
firstHotKey: 'G',
secondHotKey: 'T',
Icon: IconCheckbox,
},
];