oddsgate-ds 1.0.136 → 1.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react'
|
|
2
2
|
|
|
3
|
-
import { Field } from 'formik'
|
|
4
3
|
import { ICheckRadioField } from './CheckRadioField.interface'
|
|
5
4
|
import { StyledCheckRadioField } from './CheckRadioField.theme'
|
|
6
|
-
import RichText from '../../RichText'
|
|
5
|
+
import RichText from '../../RichText/RichText.component'
|
|
7
6
|
|
|
8
7
|
const CheckRadioField = ({
|
|
9
8
|
id,
|
|
@@ -14,11 +13,10 @@ const CheckRadioField = ({
|
|
|
14
13
|
}: ICheckRadioField) => {
|
|
15
14
|
return (
|
|
16
15
|
<StyledCheckRadioField>
|
|
17
|
-
|
|
18
|
-
<label
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
></label>
|
|
16
|
+
{children}
|
|
17
|
+
<label htmlFor={id}>
|
|
18
|
+
<RichText tag="p">{label}</RichText>
|
|
19
|
+
</label>
|
|
22
20
|
</StyledCheckRadioField>
|
|
23
21
|
)
|
|
24
22
|
}
|