@omniumretail/component-library 1.1.34 → 1.1.35
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
|
@@ -19,6 +19,7 @@ const defaultInitialValues = {
|
|
|
19
19
|
generalEvaluationLevel: "0",
|
|
20
20
|
questions: [],
|
|
21
21
|
openAnswer: false,
|
|
22
|
+
isYesOrNo: false
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export const CategoryContent = (props: categoryContent) => {
|
|
@@ -69,6 +70,7 @@ export const CategoryContent = (props: categoryContent) => {
|
|
|
69
70
|
form.resetFields();
|
|
70
71
|
form.setFieldsValue(initialValues);
|
|
71
72
|
setSwitchOpenAnswStatus(initialValues?.openAnswer || false);
|
|
73
|
+
setSwitchYesOrNoAnswStatus(initialValues?.isYesOrNo || false);
|
|
72
74
|
}, [form, initialValues]);
|
|
73
75
|
|
|
74
76
|
return (
|
|
@@ -118,7 +120,7 @@ export const CategoryContent = (props: categoryContent) => {
|
|
|
118
120
|
|
|
119
121
|
{!categorySidebarData?.data?.children?.length &&
|
|
120
122
|
<>
|
|
121
|
-
{
|
|
123
|
+
{switchOpenAnswStatus &&
|
|
122
124
|
<div className={styles.openAnswer}>
|
|
123
125
|
<Label isUppercase>
|
|
124
126
|
{t('components.categoryContent.openAnswer')}
|
|
@@ -131,7 +133,7 @@ export const CategoryContent = (props: categoryContent) => {
|
|
|
131
133
|
</div>
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
{
|
|
136
|
+
{switchYesOrNoAnswStatus &&
|
|
135
137
|
<div className={styles.yesNoAnswer}>
|
|
136
138
|
<Label isUppercase>
|
|
137
139
|
{t('components.categoryContent.yesNoAnswer')}
|