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>
This commit is contained in:
@ -10,6 +10,7 @@ import { Command, CommandType } from '../types/Command';
|
||||
|
||||
export const commandMenuCommands: Command[] = [
|
||||
{
|
||||
id: 'go-to-people',
|
||||
to: '/objects/people',
|
||||
label: 'Go to People',
|
||||
type: CommandType.Navigate,
|
||||
@ -18,6 +19,7 @@ export const commandMenuCommands: Command[] = [
|
||||
Icon: IconUser,
|
||||
},
|
||||
{
|
||||
id: 'go-to-companies',
|
||||
to: '/objects/companies',
|
||||
label: 'Go to Companies',
|
||||
type: CommandType.Navigate,
|
||||
@ -26,6 +28,7 @@ export const commandMenuCommands: Command[] = [
|
||||
Icon: IconBuildingSkyscraper,
|
||||
},
|
||||
{
|
||||
id: 'go-to-activities',
|
||||
to: '/objects/opportunities',
|
||||
label: 'Go to Opportunities',
|
||||
type: CommandType.Navigate,
|
||||
@ -34,6 +37,7 @@ export const commandMenuCommands: Command[] = [
|
||||
Icon: IconTargetArrow,
|
||||
},
|
||||
{
|
||||
id: 'go-to-settings',
|
||||
to: '/settings/profile',
|
||||
label: 'Go to Settings',
|
||||
type: CommandType.Navigate,
|
||||
@ -42,6 +46,7 @@ export const commandMenuCommands: Command[] = [
|
||||
Icon: IconSettings,
|
||||
},
|
||||
{
|
||||
id: 'go-to-tasks',
|
||||
to: '/tasks',
|
||||
label: 'Go to Tasks',
|
||||
type: CommandType.Navigate,
|
||||
|
||||
Reference in New Issue
Block a user