diff --git a/src/client/components/ModalButton.tsx b/src/client/components/ModalButton.tsx new file mode 100644 index 0000000..9571b44 --- /dev/null +++ b/src/client/components/ModalButton.tsx @@ -0,0 +1,26 @@ +import { Button, ButtonProps, Modal, ModalProps } from 'antd'; +import React, { useState } from 'react'; + +interface ModalButtonProps { + buttonProps: Omit; + modalProps: Omit; +} +export const ModalButton: React.FC = React.memo((props) => { + const [isOpen, setIsOpen] = useState(false); + + return ( + <> + + {websiteList.length !== 0 && ( + + )} @@ -57,6 +60,19 @@ export const Dashboard: React.FC = React.memo(() => { ) : (
+ {websiteList.length === 0 && ( + +
There is no website has been created
+ + + +
+ } + /> + )} + {websiteList.map((website, i) => ( {i !== 0 && }