diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-11-13 20:02:16 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-11-13 20:02:16 +0100 |
| commit | e10bf00f5cc1d3339402f169df5f0ee37487f771 (patch) | |
| tree | fa371841095d5ff8f3f0a25908d436f514d2b50c /gui/src/renderer/components | |
| parent | a3ef4a5afc7005444b5e615946486226f83c9dc9 (diff) | |
| parent | 90db7b7922192cc96eae37caa1f20e2fefe6bc15 (diff) | |
| download | mullvadvpn-e10bf00f5cc1d3339402f169df5f0ee37487f771.tar.xz mullvadvpn-e10bf00f5cc1d3339402f169df5f0ee37487f771.zip | |
Merge branch 'update-notification-contents'
Diffstat (limited to 'gui/src/renderer/components')
| -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 { |
