Skip to content

Commit

Permalink
🐛 UPCO-195 - Fix incorrect Theme icons, alert-circle and alert-triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
yplarthur committed Nov 9, 2023
1 parent 3090eb3 commit ac296a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export enum Theme {

export const THEME_ICON_MAP: { [Theme: string]: string } = {
[Theme.SUCCESS]: 'check-1',
[Theme.DANGER]: 'alert-circle',
[Theme.WARNING]: 'alert-triangle'
[Theme.WARNING]: 'alert-circle',
[Theme.DANGER]: 'alert-triangle'
};

// States
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const renderDescription = ({ id, description, state }: DescriptionProps)
return description ? (
<small id={`${id}--description`} className={descriptionClasses}>
{state === State.SUCCESS && <Icon name={THEME_ICON_MAP[Theme.SUCCESS]} />}
{state === State.ERROR && <Icon name={THEME_ICON_MAP[Theme.WARNING]} />}
{state === State.ERROR && <Icon name={THEME_ICON_MAP[Theme.DANGER]} />}
{description}
</small>
) : null;
Expand Down

0 comments on commit ac296a8

Please sign in to comment.