Failed Conditions
Push — develop ( 78df23...8d22aa )
by Reüel
09:06
created

js/src/progress-circle/transforms.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 21
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0
1
/**
2
 * WordPress dependencies.
3
 */
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-bar',
15
				'pronamic-pay/fundraising-progress-text'
16
			],
17
			transform: ( attributes ) => {
18
				return createBlock( 'pronamic-pay/fundraising-progress-circle', attributes );
19
			}
20
		}
21
	]
22
}
23
24
export default transforms;