diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx
index 550ea4c231..703dcd85a9 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -26,7 +26,7 @@ import React, { useState } from "react";
export interface MiniDialogAttributes {
icon?: React.ReactNode;
/**
- * The dialog's title
+ * The dialog's title.
*
* Usually this will be a string, but it can be any {@link ReactNode}. Note
* that it always gets wrapped in a Typography element to set the font
@@ -82,12 +82,6 @@ export interface MiniDialogAttributes {
variant?: ButtonProps["color"];
disabled?: boolean;
};
- buttons?: {
- text: string;
- action: () => void;
- variant: ButtonProps["color"];
- disabled?: boolean;
- }[];
buttonDirection?: "row" | "column";
}
@@ -166,9 +160,7 @@ export function MiniDialog({
))}
- {(attributes.proceed ||
- attributes.close ||
- attributes.buttons?.length) && (
+ {(attributes.proceed || attributes.close) && (
)}
- {attributes.buttons &&
- attributes.buttons.map((b) => (
- {
- b.action();
- onClose();
- }}
- disabled={b.disabled}
- >
- {b.text}
-
- ))}
)}
@@ -316,9 +293,7 @@ export function DialogBoxV2({
))}
- {(attributes.proceed ||
- attributes.close ||
- attributes.buttons?.length) && (
+ {(attributes.proceed || attributes.close) && (
)}
- {attributes.buttons &&
- attributes.buttons.map((b) => (
- {
- b.action();
- onClose();
- }}
- disabled={b.disabled}
- >
- {b.text}
-
- ))}
)}