From 1a7653e4ec34513093c849a2a9cae0207cfb108e Mon Sep 17 00:00:00 2001 From: gkuzin13 Date: Mon, 1 Jan 2024 20:46:43 +0200 Subject: [PATCH] chore: simplify prop types --- apps/client/src/contexts/modal.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/client/src/contexts/modal.tsx b/apps/client/src/contexts/modal.tsx index 23b98c5..2596d92 100644 --- a/apps/client/src/contexts/modal.tsx +++ b/apps/client/src/contexts/modal.tsx @@ -1,5 +1,4 @@ import { useState } from 'react'; -import type { PropsWithChildren } from 'react'; import useDisclosure from '@/hooks/useDisclosure/useDisclosure'; import Dialog from '@/components/Elements/Dialog/Dialog'; import { createContext } from './createContext'; @@ -19,7 +18,7 @@ type ModalContent = { export const [ModalContext, useModal] = createContext('Modal'); -export const ModalProvider = ({ children }: PropsWithChildren) => { +export const ModalProvider = ({ children }: React.PropsWithChildren) => { const [opened, { open, close }] = useDisclosure(); const [content, setContent] = useState({ title: '',