Feat/better hotkeys scope (#526)
* Working version * fix * Fixed console log * Fix lint * wip * Fix * Fix * consolelog --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
7
front/src/sync-hooks/AnalyticsHook.tsx
Normal file
7
front/src/sync-hooks/AnalyticsHook.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
import { useTrackPageView } from '@/analytics/hooks/useTrackPageView';
|
||||
|
||||
export function AnalyticsHook() {
|
||||
useTrackPageView();
|
||||
|
||||
return <></>;
|
||||
}
|
||||
10
front/src/sync-hooks/GotoHotkeysHooks.tsx
Normal file
10
front/src/sync-hooks/GotoHotkeysHooks.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
import { useGoToHotkeys } from '@/hotkeys/hooks/useGoToHotkeys';
|
||||
|
||||
export function GotoHotkeysHooks() {
|
||||
useGoToHotkeys('p', '/people');
|
||||
useGoToHotkeys('c', '/companies');
|
||||
useGoToHotkeys('o', '/opportunities');
|
||||
useGoToHotkeys('s', '/settings/profile');
|
||||
|
||||
return <></>;
|
||||
}
|
||||
7
front/src/sync-hooks/HotkeysScopeStackAutoSyncHook.tsx
Normal file
7
front/src/sync-hooks/HotkeysScopeStackAutoSyncHook.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
import { useHotkeysScopeStackAutoSync } from '@/hotkeys/hooks/internal/useHotkeysScopeStackAutoSync';
|
||||
|
||||
export function HotkeysScopeStackAutoSyncHook() {
|
||||
useHotkeysScopeStackAutoSync();
|
||||
|
||||
return <></>;
|
||||
}
|
||||
Reference in New Issue
Block a user