summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-11-11 18:03:53 +0100
committerOskar Nyberg <oskar@mullvad.net>2020-11-13 19:53:58 +0100
commit52499b482483ba1dac7fc8d756f2bf671362b178 (patch)
treede8a93434fed86caf35980105f92560fe041e388
parenta3ef4a5afc7005444b5e615946486226f83c9dc9 (diff)
downloadmullvadvpn-52499b482483ba1dac7fc8d756f2bf671362b178.tar.xz
mullvadvpn-52499b482483ba1dac7fc8d756f2bf671362b178.zip
Allow no severity indicator in in-app notifications
-rw-r--r--gui/src/renderer/components/NotificationBanner.tsx4
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 {