The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Show icons for navigate commands (#2184)
brendanlaschkec80eb5c0b0ba
diff --git a/front/src/modules/command-menu/components/CommandMenu.tsx b/front/src/modules/command-menu/components/CommandMenu.tsxindex 7996d1a48a0..7d83e6c4547 100644--- a/front/src/modules/command-menu/components/CommandMenu.tsx+++ b/front/src/modules/command-menu/components/CommandMenu.tsx@@ -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 || []}/>diff --git a/front/src/modules/command-menu/constants/commandMenuCommands.ts b/front/src/modules/command-menu/constants/commandMenuCommands.tsindex d76322d964e..e0aba653f42 100644--- a/front/src/modules/command-menu/constants/commandMenuCommands.ts+++ b/front/src/modules/command-menu/constants/commandMenuCommands.ts@@ -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,},];