Skip to content

Commit

Permalink
fix(Alert): hardcoded statuses (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjitrosch committed Apr 3, 2023
1 parent 9a2f5cd commit f3bdaf8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ const Alert = forwardRef<HTMLDivElement, AlertProps>(
'alert',
className,
clsx({
[`alert-${status}`]: status,
'alert-info': status === 'info',
'alert-success': status === 'success',
'alert-warning': status === 'warning',
'alert-error': status === 'error',
})
)

Expand Down

0 comments on commit f3bdaf8

Please sign in to comment.