diff --git a/src/equicordplugins/components.dev/components/tabs/AlertTab.tsx b/src/equicordplugins/components.dev/components/tabs/AlertTab.tsx index b049a509c..ae0d240e4 100644 --- a/src/equicordplugins/components.dev/components/tabs/AlertTab.tsx +++ b/src/equicordplugins/components.dev/components/tabs/AlertTab.tsx @@ -37,15 +37,14 @@ export default function AlertTab() { }); }; - const showSecondaryConfirmAlert = () => { + const showExpressiveAlert = () => { Alerts.show({ - title: "Multiple Actions", - body: "This alert has a secondary confirm action.", - confirmText: "Primary Action", - secondaryConfirmText: "Secondary Action", - cancelText: "Cancel", - onConfirm: () => showToast("Primary action!", ToastType.SUCCESS), - onConfirmSecondary: () => showToast("Secondary action!", ToastType.MESSAGE), + title: "Premium Feature", + body: "This feature requires a premium subscription.", + confirmText: "Upgrade Now", + confirmVariant: "expressive", + cancelText: "Maybe Later", + onConfirm: () => showToast("Upgrading!", ToastType.SUCCESS), }); }; @@ -78,12 +77,12 @@ export default function AlertTab() { - + - Alert with multiple confirm actions. + Alert with premium/expressive styled button. - @@ -115,15 +114,9 @@ export default function AlertTab() { confirmVariant - "primary", "critical-primary", or "expressive" - - secondaryConfirmText - Text for secondary action button - onConfirm - Callback when confirm clicked - - onConfirmSecondary - Callback for secondary action - onCancel - Callback when cancel clicked diff --git a/src/equicordplugins/components.dev/types/alert.d.ts b/src/equicordplugins/components.dev/types/alert.d.ts index df08a5d47..ee7d04dd6 100644 --- a/src/equicordplugins/components.dev/types/alert.d.ts +++ b/src/equicordplugins/components.dev/types/alert.d.ts @@ -9,12 +9,11 @@ export interface AlertOptions { body: React.ReactNode; confirmText?: string; cancelText?: string; - secondaryConfirmText?: string; confirmVariant?: "primary" | "critical-primary" | "expressive"; onConfirm?: () => void; onCancel?: () => void; - onConfirmSecondary?: () => void; onCloseCallback?: () => void; + contextKey?: string; } export interface AlertsType {