Skip to content

Commit

Permalink
fix(Dialog): to have correct icon with sentiment danger and warning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
matthprost authored Feb 5, 2025
1 parent 112031d commit fc68c84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-insects-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": patch
---

Fix `<Dialog />` component to have correct icon when having warning and danger sentiment
4 changes: 1 addition & 3 deletions packages/ui/src/components/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ export const BaseDialog = ({
<Bullet
sentiment={sentiment}
icon={
sentiment === 'warning' || sentiment === 'danger'
? 'information-outline'
: 'check'
sentiment === 'warning' || sentiment === 'danger' ? 'alert' : 'check'
}
/>
<StyledTextTitle
Expand Down

0 comments on commit fc68c84

Please sign in to comment.