diff --git a/src/profile/components/deleteProfile/DeleteProfile.tsx b/src/profile/components/deleteProfile/DeleteProfile.tsx index 599d41b9d..71be7f86c 100644 --- a/src/profile/components/deleteProfile/DeleteProfile.tsx +++ b/src/profile/components/deleteProfile/DeleteProfile.tsx @@ -216,6 +216,7 @@ function DeleteProfile(): React.ReactElement { )} void; onConfirm: () => void; title?: string; + variant?: DialogVariant; + hasError?: boolean; content?: React.FC | string; actionButtonText?: string; closeButtonText?: string; @@ -20,6 +30,8 @@ function ConfirmationModal({ onClose, onConfirm, title, + variant = 'primary', + hasError, content, actionButtonText, closeButtonText, @@ -51,6 +63,7 @@ function ConfirmationModal({ return ( diff --git a/src/profile/components/modals/deleteProfileError/DeleteProfileError.tsx b/src/profile/components/modals/deleteProfileError/DeleteProfileError.tsx index 85c537362..c3f6cd233 100644 --- a/src/profile/components/modals/deleteProfileError/DeleteProfileError.tsx +++ b/src/profile/components/modals/deleteProfileError/DeleteProfileError.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Button, Dialog, DialogProps, IconAlertCircle } from 'hds-react'; +import { Button, Dialog, DialogProps, IconError } from 'hds-react'; import { useTranslation } from 'react-i18next'; import { ApolloError } from '@apollo/client'; @@ -50,6 +50,7 @@ function DeleteProfileError({ return (