Quellcode durchsuchen

return empty fragment instead of dialog

Abhinav vor 3 Jahren
Ursprung
Commit
2a0d7962b1
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      src/components/DialogBox/index.tsx

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

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