forked from jesusoterogomez/react-notify-toast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.js
More file actions
33 lines (29 loc) · 684 Bytes
/
Copy pathdefaults.js
File metadata and controls
33 lines (29 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import assign from 'object-assign';
let defaults = {
wrapperId: 'notification-wrapper',
animationDuration: 300,
timeout: 5000,
zIndex: 1000,
colors: {
error: {
color: "#FFFFFF",
backgroundColor: '#E85742'
},
success: {
color: "#FFFFFF",
backgroundColor: '#55CA92'
},
warning: {
color: "#333333",
backgroundColor: '#F5E273'
},
info: {
color: "#FFFFFF",
backgroundColor: '#4990E2'
}
}
};
function mergeOptions(options) {
defaults = assign(defaults, options);
}
export {defaults, mergeOptions};