|
|
@@ -8,6 +8,7 @@ import {
|
|
8
|
8
|
isNarrowAspectRatio,
|
|
9
|
9
|
makeAspectRatioAware
|
|
10
|
10
|
} from '../../base/responsive-ui';
|
|
|
11
|
+import { BoxModel } from '../../base/styles';
|
|
11
|
12
|
import { FILMSTRIP_SIZE, isFilmstripVisible } from '../../filmstrip';
|
|
12
|
13
|
import { HANGUP_BUTTON_SIZE } from '../../toolbox';
|
|
13
|
14
|
|
|
|
@@ -34,7 +35,7 @@ type Props = AbstractProps & {
|
|
34
|
35
|
/**
|
|
35
|
36
|
* The margin of the container to be kept from other components.
|
|
36
|
37
|
*/
|
|
37
|
|
-const CONTAINER_MARGIN = 10;
|
|
|
38
|
+const CONTAINER_MARGIN = BoxModel.margin;
|
|
38
|
39
|
|
|
39
|
40
|
/**
|
|
40
|
41
|
* Implements a React {@link Component} which displays notifications and handles
|
|
|
@@ -61,28 +62,24 @@ class NotificationsContainer extends AbstractNotificationsContainer<Props> {
|
|
61
|
62
|
return (
|
|
62
|
63
|
<View
|
|
63
|
64
|
pointerEvents = 'box-none'
|
|
64
|
|
- style = { styles.notificationOverlay }>
|
|
65
|
|
- <View
|
|
66
|
|
- pointerEvents = 'box-none'
|
|
67
|
|
- style = { [
|
|
68
|
|
- styles.notificationContainer,
|
|
69
|
|
- this._getContainerStyle()
|
|
70
|
|
- ] }>
|
|
71
|
|
- {
|
|
72
|
|
- _notifications.map(notification => {
|
|
73
|
|
- const { props, uid } = notification;
|
|
74
|
|
-
|
|
75
|
|
- return (
|
|
76
|
|
- <Notification
|
|
77
|
|
- { ...props }
|
|
78
|
|
- key = { uid }
|
|
79
|
|
- onDismissed = { this._onDismissed }
|
|
80
|
|
- uid = { uid } />
|
|
81
|
|
-
|
|
82
|
|
- );
|
|
83
|
|
- })
|
|
84
|
|
- }
|
|
85
|
|
- </View>
|
|
|
65
|
+ style = { [
|
|
|
66
|
+ styles.notificationContainer,
|
|
|
67
|
+ this._getContainerStyle()
|
|
|
68
|
+ ] }>
|
|
|
69
|
+ {
|
|
|
70
|
+ _notifications.map(notification => {
|
|
|
71
|
+ const { props, uid } = notification;
|
|
|
72
|
+
|
|
|
73
|
+ return (
|
|
|
74
|
+ <Notification
|
|
|
75
|
+ { ...props }
|
|
|
76
|
+ key = { uid }
|
|
|
77
|
+ onDismissed = { this._onDismissed }
|
|
|
78
|
+ uid = { uid } />
|
|
|
79
|
+
|
|
|
80
|
+ );
|
|
|
81
|
+ })
|
|
|
82
|
+ }
|
|
86
|
83
|
</View>
|
|
87
|
84
|
);
|
|
88
|
85
|
}
|