diff --git a/client/src/components/Donation/card-update-alert-handler.tsx b/client/src/components/Donation/card-update-alert-handler.tsx index 26198423444..c75ad3f3016 100644 --- a/client/src/components/Donation/card-update-alert-handler.tsx +++ b/client/src/components/Donation/card-update-alert-handler.tsx @@ -1,7 +1,7 @@ -import { Alert, Button } from '@freecodecamp/react-bootstrap'; import React from 'react'; import { useTranslation } from 'react-i18next'; import Spinner from 'react-spinkit'; +import { Alert } from '@freecodecamp/ui'; type CardUpdateAlertHandlerProps = { error: string | null; @@ -19,21 +19,15 @@ function CardUpdateAlertHandler({ const { t } = useTranslation(); const style = redirecting ? 'info' : success ? 'success' : 'danger'; - const heading = redirecting + const message = redirecting ? `${t('donate.redirecting')}` : success ? `${t('donate.success-card-update')}` : `${t('donate.error-card-update')}`; return ( - -

- {heading} -

+ +

{message}

{redirecting && ( {error && (
- +
)}