Browse Source

return empty fragment instead of dialog

Abhinav 3 năm trước cách đây
mục cha
commit
2a0d7962b1

+ 1 - 2
src/components/DialogBox/index.tsx

@@ -3,7 +3,6 @@ import constants from 'utils/strings/constants';
 import {
 import {
     Breakpoint,
     Breakpoint,
     Button,
     Button,
-    Dialog,
     DialogActions,
     DialogActions,
     DialogContent,
     DialogContent,
     DialogProps,
     DialogProps,
@@ -32,7 +31,7 @@ export default function DialogBox({
     ...props
     ...props
 }: IProps) {
 }: IProps) {
     if (!attributes) {
     if (!attributes) {
-        return <Dialog open={false} />;
+        return <></>;
     }
     }
 
 
     const handleClose = dialogCloseHandler({
     const handleClose = dialogCloseHandler({