Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 21 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
4 | import { createBlock } from '@wordpress/blocks'; |
||
5 | |||
6 | /** |
||
7 | * Transforms. |
||
8 | */ |
||
9 | const transforms = { |
||
10 | from: [ |
||
11 | { |
||
12 | type: 'block', |
||
13 | blocks: [ |
||
14 | 'pronamic-pay/fundraising-progress-circle', |
||
15 | 'pronamic-pay/fundraising-progress-bar' |
||
16 | ], |
||
17 | transform: ( attributes ) => { |
||
18 | return createBlock( 'pronamic-pay/fundraising-progress-text', attributes ); |
||
19 | } |
||
20 | } |
||
21 | ] |
||
22 | } |
||
23 | |||
24 | export default transforms; |