-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathsubstitute.js
More file actions
47 lines (46 loc) · 1019 Bytes
/
substitute.js
File metadata and controls
47 lines (46 loc) · 1019 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export const substitute = {
from: 'stackable/countdown',
transform: oldAttributes => {
return [
'stackable/columns',
{ ...oldAttributes },
[
[
'stackable/column',
{ align: 'center' },
[
[ 'core/paragraph', {
fontSize: 'x-large',
content: '3',
align: 'center',
style: { spacing: { margin: { top: '0', bottom: '0' } } },
} ],
[ 'core/paragraph', {
content: 'Days',
align: 'center',
style: { spacing: { margin: { top: '0', bottom: '0' } } },
} ],
],
],
[
'stackable/column',
{ align: 'center' },
[
[ 'core/paragraph', {
fontSize: 'x-large',
content: '16',
align: 'center',
style: { spacing: { margin: { top: '0', bottom: '0' } } },
} ],
[ 'core/paragraph', {
content: 'Hours',
align: 'center',
style: { spacing: { margin: { top: '0', bottom: '0' } } },
} ],
],
],
],
]
},
}
export default substitute