diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-11-11 18:03:53 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-11-13 19:53:58 +0100 |
| commit | 52499b482483ba1dac7fc8d756f2bf671362b178 (patch) | |
| tree | de8a93434fed86caf35980105f92560fe041e388 | |
| parent | a3ef4a5afc7005444b5e615946486226f83c9dc9 (diff) | |
| download | mullvadvpn-52499b482483ba1dac7fc8d756f2bf671362b178.tar.xz mullvadvpn-52499b482483ba1dac7fc8d756f2bf671362b178.zip | |
Allow no severity indicator in in-app notifications
| -rw-r--r-- | gui/src/renderer/components/NotificationBanner.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/renderer/components/NotificationBanner.tsx b/gui/src/renderer/components/NotificationBanner.tsx index c9354be7ac..01915b1240 100644 --- a/gui/src/renderer/components/NotificationBanner.tsx +++ b/gui/src/renderer/components/NotificationBanner.tsx @@ -84,7 +84,7 @@ export const NotificationActions = styled.div({ }); interface INotificationIndicatorProps { - type: InAppNotificationIndicatorType; + type?: InAppNotificationIndicatorType; } const notificationIndicatorTypeColorMap = { @@ -99,7 +99,7 @@ export const NotificationIndicator = styled.div((props: INotificationIndicatorPr borderRadius: '5px', marginTop: '4px', marginRight: '8px', - backgroundColor: notificationIndicatorTypeColorMap[props.type], + backgroundColor: props.type ? notificationIndicatorTypeColorMap[props.type] : 'transparent', })); interface ICollapsibleProps { |
