Fix/relation picker (#546)

* FIx pickers

* Fix

* Fix lint

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Lucas Bordeau
2023-07-09 03:43:41 +02:00
committed by GitHub
parent 9d25d003ca
commit 795bead1bb
6 changed files with 29 additions and 9 deletions

View File

@ -1,8 +1,6 @@
import styled from '@emotion/styled';
import { useRecoilState } from 'recoil';
import { useHotkeysScopeOnBooleanState } from '@/hotkeys/hooks/useHotkeysScopeOnBooleanState';
import { InternalHotkeysScope } from '@/hotkeys/types/internal/InternalHotkeysScope';
import { isDefined } from '@/utils/type-guards/isDefined';
import { Panel } from '../../Panel';
@ -21,11 +19,6 @@ export function RightDrawer() {
const [isRightDrawerOpen] = useRecoilState(isRightDrawerOpenState);
const [rightDrawerPage] = useRecoilState(rightDrawerPageState);
useHotkeysScopeOnBooleanState(
{ scope: InternalHotkeysScope.RightDrawer },
isRightDrawerOpen,
);
if (!isRightDrawerOpen || !isDefined(rightDrawerPage)) {
return <></>;
}