Skip to content

Commit dffc190

Browse files
committed
fix: Hide information icon when on second page of add dataset dialog
1 parent 4e2fce5 commit dffc190

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

app/configurator/components/add-dataset-dialog.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ const DialogCloseButton = (props: IconButtonProps) => {
108108
right: "1.5rem",
109109
...props.sx,
110110
}}
111-
size="small"
112111
>
113112
<SvgIcRemove width={24} height={24} fontSize={24} />
114113
</IconButton>
@@ -988,11 +987,13 @@ export const DatasetDialog = ({
988987
className={clsx(classes.dialog, props.className)}
989988
>
990989
<Box className={classes.dialogCloseArea}>
991-
<Grow in={!isOpen}>
992-
<IconButton color="primary" onClick={() => open()}>
993-
<SvgIcInfo />
994-
</IconButton>
995-
</Grow>
990+
{otherCube ? null : (
991+
<Grow in={!isOpen}>
992+
<IconButton color="primary" onClick={() => open()}>
993+
<SvgIcInfo />
994+
</IconButton>
995+
</Grow>
996+
)}
996997
<DialogCloseButton
997998
onClick={(ev) => handleClose(ev, "escapeKeyDown")}
998999
sx={{ position: "static" }}

0 commit comments

Comments
 (0)