Skip to content

Commit

Permalink
fix: prevent notirication string being added to the dom
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Richards committed Nov 24, 2023
1 parent 1ee36f7 commit afd9dda
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/widget/src/components/Header/SettingsButon.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ interface SettingsIconButtonProps {
notification?: 'info' | 'warning';
}

export const SettingsIconButton = styled(IconButton)<SettingsIconButtonProps>(({
theme,
notification,
}) => {
export const SettingsIconButton = styled(IconButton, {
shouldForwardProp: (props) => props !== 'notification',
})<SettingsIconButtonProps>(({ theme, notification }) => {
const notificationStyles = {
info: {
backgroundColor: getInfoBackgroundColor(theme),
Expand Down

0 comments on commit afd9dda

Please sign in to comment.