Skip to content

Commit

Permalink
fix: InfoBar crash app on update
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhamed authored and vraravam committed Jul 23, 2023
1 parent 5632a45 commit a4b9fa7
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions src/components/ui/InfoBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ class InfoBar extends Component<IProps> {
[`${className}`]: true,
})}
>
<div className="info-bar__content">
<div
className={classnames({
'info-bar': true,
[`info-bar--${type}`]: true,
[`info-bar--${position}`]: true,
[`${className}`]: true,
})}
>
{children}
{ctaLabel && (
<button type="button" className="info-bar__cta" onClick={onClick}>
Expand All @@ -70,17 +77,17 @@ class InfoBar extends Component<IProps> {
{ctaLabel}
</button>
)}
{!sticky && (
<button
type="button"
className="info-bar__close"
onClick={onHide}
aria-label={intl.formatMessage(messages.hide)}
>
<Icon icon={mdiClose} />
</button>
)}
</div>
{!sticky && (
<button
type="button"
className="info-bar__close"
onClick={onHide}
aria-label={intl.formatMessage(messages.hide)}
>
<Icon icon={mdiClose} />
</button>
)}
</Appear>
);
}
Expand Down

0 comments on commit a4b9fa7

Please sign in to comment.