Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune

Manav Rathi66ac35cbccf1
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx
index 226d4b1f85..e3f710d584 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -228,7 +228,6 @@ export function MiniDialog({
// }
export interface DialogBoxV2Attributes {
- icon?: React.ReactNode;
/**
* The dialog's title.
*
@@ -240,10 +239,7 @@ export interface DialogBoxV2Attributes {
title?: React.ReactNode;
staticBackdrop?: boolean;
nonClosable?: boolean;
- /**
- * The dialog's content.
- */
- content?: React.ReactNode;
+
/**
* Customize the cancel (dismiss) action button offered by the dialog box.
*
@@ -339,28 +335,12 @@ export function DialogBoxV2({
>
<Stack spacing={"36px"} p={"16px"}>
<Stack spacing={"19px"}>
- {attributes.icon && (
- <Box
- sx={{
- "& > svg": {
- fontSize: "32px",
- },
- }}
- >
- {attributes.icon}
- </Box>
- )}
{attributes.title && (
<Typography variant="large" fontWeight={"bold"}>
{attributes.title}
</Typography>
)}
- {children ||
- (attributes?.content && (
- <Typography color="text.muted">
- {attributes.content}
- </Typography>
- ))}
+ {children}
</Stack>
{(attributes.proceed || attributes.close) && (
<Stack