5e2df81211
This PR fixes #6746 --------- Co-authored-by: Charles Bochet <charles@twenty.com>
13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
import { useGoToHotkeys } from '@/ui/utilities/hotkey/hooks/useGoToHotkeys';
|
|
|
|
export const GoToHotkeyItemEffect = (props: {
|
|
hotkey: string;
|
|
pathToNavigateTo: string;
|
|
}) => {
|
|
const { hotkey, pathToNavigateTo } = props;
|
|
|
|
useGoToHotkeys({ key: hotkey, location: pathToNavigateTo });
|
|
|
|
return <></>;
|
|
};
|