Files
twenty/front/src/modules/command-menu/states/commandMenuCommandsState.ts
T
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

16 lines
310 B
TypeScript

import { atom } from 'recoil';
import { Command, CommandType } from '../types/Command';
export const commandMenuCommandsState = atom<Command[]>({
key: 'command-menu/commandMenuCommandsState',
default: [
{
id: '',
to: '',
label: '',
type: CommandType.Navigate,
},
],
});