File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
packages/web/src/views/Calendar/components/Draft Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 1- import React , { FC , useEffect , useState } from "react" ;
1+ import React , { FC } from "react" ;
22import { createPortal } from "react-dom" ;
33import { Categories_Event } from "@core/types/event.types" ;
44import { getDraftContainer } from "@web/common/utils/draft/draft.util" ;
5- import {
6- selectDraftCategory ,
7- selectIsDrafting ,
8- } from "@web/ducks/events/selectors/draft.selectors" ;
5+ import { selectDraftCategory } from "@web/ducks/events/selectors/draft.selectors" ;
96import { useAppSelector } from "@web/store/store.hooks" ;
107import { Measurements_Grid } from "@web/views/Calendar/hooks/grid/useGridLayout" ;
118import { WeekProps } from "@web/views/Calendar/hooks/useWeek" ;
@@ -20,22 +17,13 @@ interface Props {
2017}
2118
2219export const Draft : FC < Props > = ( { measurements, weekProps } ) => {
23- // const [isLoadingDOM, setIsLoadingDOM] = useState(true);
24-
25- // useEffect(() => {
26- // setIsLoadingDOM(false);
27- // }, []);
28-
2920 useGridClick ( ) ;
3021 useGridMouseMove ( ) ;
3122
32- const isDrafting = useAppSelector ( selectIsDrafting ) ;
3323 const category = useAppSelector ( selectDraftCategory ) ;
3424 const { state } = useDraftContext ( ) ;
3525 const { draft, isDragging, isResizing } = state ;
3626
37- // if (isLoadingDOM || !draft || !isDrafting) return null;
38-
3927 if ( draft ?. isAllDay === undefined ) {
4028 return null ;
4129 }
You can’t perform that action at this time.
0 commit comments