diff --git a/src/design-system/components/alert/Alert.tsx b/src/design-system/components/alert/Alert.tsx index 8f046dc06..03ccd53b5 100644 --- a/src/design-system/components/alert/Alert.tsx +++ b/src/design-system/components/alert/Alert.tsx @@ -36,6 +36,15 @@ const CloseButton = ({ label }: CloseButtonProps) => { ) } +CloseButton.displayName = 'CloseButton' + +const iconMapping = { + error: , + warning: , + info: , + success: +} + interface AlertProps extends MuiAlertProps { title?: string description?: string @@ -68,12 +77,7 @@ const Alert = forwardRef( , - warning: , - info: , - success: - }} + iconMapping={iconMapping} onClose={handleClose} ref={forwardedRef} slots={{