diff --git a/packages/widget/src/components/Header/SettingsButon.style.tsx b/packages/widget/src/components/Header/SettingsButon.style.tsx index 6f5dd036c..4c578ae13 100644 --- a/packages/widget/src/components/Header/SettingsButon.style.tsx +++ b/packages/widget/src/components/Header/SettingsButon.style.tsx @@ -6,10 +6,9 @@ interface SettingsIconButtonProps { notification?: 'info' | 'warning'; } -export const SettingsIconButton = styled(IconButton)(({ - theme, - notification, -}) => { +export const SettingsIconButton = styled(IconButton, { + shouldForwardProp: (props) => props !== 'notification', +})(({ theme, notification }) => { const notificationStyles = { info: { backgroundColor: getInfoBackgroundColor(theme),