Skip to content

Commit

Permalink
chore: simplify prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
gkuzin13 committed Jan 1, 2024
1 parent 826f539 commit 1a7653e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/client/src/contexts/modal.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -19,7 +18,7 @@ type ModalContent = {
export const [ModalContext, useModal] =
createContext<ModalContextValue>('Modal');

export const ModalProvider = ({ children }: PropsWithChildren) => {
export const ModalProvider = ({ children }: React.PropsWithChildren) => {
const [opened, { open, close }] = useDisclosure();
const [content, setContent] = useState<ModalContent>({
title: '',
Expand Down

0 comments on commit 1a7653e

Please sign in to comment.