Files
twenty/packages/twenty-front/src/modules/command-menu/constants/CommandMenuCommands.ts
sid0-0 e662f6ccb3 fix: fixed shortcuts population (#7016)
This PR fixes #6776 

Screenshots:
<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/ca061c30-ddb7-40ff-8c54-8b0d85d40864">

---------

Co-authored-by: sid0-0 <a@b.com>
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2024-10-08 17:39:41 +02:00

58 lines
1.2 KiB
TypeScript

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