diff --git a/src/components/Empty/Empty.tsx b/src/components/Empty/Empty.tsx index f49ad8b..736c43a 100644 --- a/src/components/Empty/Empty.tsx +++ b/src/components/Empty/Empty.tsx @@ -1,5 +1,6 @@ -import React, { FC } from "react"; +import React, { FC, useState } from "react"; import { Button, Empty as AntEmpty } from "antd"; +import CreateModal from "../CreateModal/CreateModal"; export interface EmptyProps { height?: number | string; @@ -7,13 +8,22 @@ export interface EmptyProps { } const Empty: FC = ({ height, create }) => { + const [isModalUp, setModalUp] = useState(false); return (
- {create && } + {create && ( + <> + + setModalUp(false)} + /> + + )}
);