Files
twenty/front/src/sync-hooks/CommandMenuHook.tsx
T
4a388b8ed5 Add task and note create option in comand menu (#1115)
* add task and note create option in comand menu

* Re-run CIs

---------

Co-authored-by: Weiko <corentin@twenty.com>
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-08-09 14:09:32 -07:00

14 lines
397 B
TypeScript

import { useSetRecoilState } from 'recoil';
import { commandMenuCommands } from '@/command-menu/constants/commandMenuCommands';
import { commandMenuCommand } from '@/command-menu/states/commandMenuCommandsState';
export function CommandMenuHook() {
const setCommands = useSetRecoilState(commandMenuCommand);
const commands = commandMenuCommands;
setCommands(commands);
return <></>;
}