@omniumretail/component-library 1.1.98 → 1.1.99
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
|
@@ -140,6 +140,18 @@ Primary.args = {
|
|
|
140
140
|
"Description": "This is a description ",
|
|
141
141
|
"Grade": "0",
|
|
142
142
|
"Note": "asasas",
|
|
143
|
+
"Disabled": true,
|
|
144
|
+
"Answer": [],
|
|
145
|
+
"IsDate": true
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"Id": "85562A64-A24B-425A-A345-560238CA2468",
|
|
149
|
+
"QuestionId": "8D17A8A5-E299-47D3-AB49-684135DB23A3",
|
|
150
|
+
"Subject": "Data",
|
|
151
|
+
"Description": "This is a description ",
|
|
152
|
+
"Grade": "0",
|
|
153
|
+
"Note": "asasas",
|
|
154
|
+
"Disabled": null,
|
|
143
155
|
"Answer": [],
|
|
144
156
|
"IsDate": true
|
|
145
157
|
}
|
|
@@ -10,7 +10,6 @@ import React from 'react';
|
|
|
10
10
|
import { t } from 'i18next';
|
|
11
11
|
import { Button } from '../Button';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
13
|
-
import moment from 'moment';
|
|
14
13
|
|
|
15
14
|
interface CategoryResponse {
|
|
16
15
|
data: any;
|
|
@@ -312,8 +311,6 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
312
311
|
{selectedCategory?.Data?.Questions.map((question: any, index: number) => {
|
|
313
312
|
const isOpenAnswer = selectedCategory.Data.OpenAnswer || question.IsOpenAnswer;
|
|
314
313
|
|
|
315
|
-
const isHeaderDate = question.Subject === t('components.category.date') && selectedCategory.Data.Key === "0";
|
|
316
|
-
|
|
317
314
|
const questionWrapper = classNames({
|
|
318
315
|
[styles.questionWrapperOpenAnswer]: isOpenAnswer || props.addButtons,
|
|
319
316
|
}, [styles.questionWrapper]);
|
|
@@ -399,7 +396,7 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
399
396
|
value={dataValue}
|
|
400
397
|
defaultValue={form.getFieldValue(`Questions`)?.[index].Answer}
|
|
401
398
|
onChange={(value) => setDataValue(value)}
|
|
402
|
-
disabled={
|
|
399
|
+
disabled={question.Disabled}
|
|
403
400
|
/>
|
|
404
401
|
</Form.Item>
|
|
405
402
|
|