浏览代码

return empty fragment instead of dialog

Abhinav 3 年之前
父节点
当前提交
2a0d7962b1
共有 1 个文件被更改,包括 1 次插入2 次删除
  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({