Skip to content

Commit

Permalink
add case for undefined variant
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Jan 23, 2024
1 parent ce34f6d commit d251f52
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/components/notifications/Notification.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,18 @@ const NotificationContainer = styled.div<{ variant?: Variant }>`
background-color: ${background};
color: ${black};
`;
case undefined:
return css`
background-color: ${background};
color: ${props.theme.textPrimary};
`;
default:
return css`
background-color: ${background};
color: ${white};
`;
}
}}
}};
`;
const NotificationTitle = styled.div`
padding: 0 ${spacing.r16} ${spacing.r4} 0;
Expand Down

0 comments on commit d251f52

Please sign in to comment.