@omniumretail/component-library 1.1.88 → 1.1.90

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.1.88",
3
+ "version": "1.1.90",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
@@ -128,7 +128,7 @@ Primary.args = {
128
128
  "Description": "This is a description ",
129
129
  "Grade": "0",
130
130
  "Note": "asasas",
131
- "Answer": ["1725058800"],
131
+ "Answer": [],
132
132
  "IsDate": true
133
133
  }
134
134
  ]
@@ -187,7 +187,7 @@ Primary.args = {
187
187
  },
188
188
  {
189
189
  "Id": "35562A64-A24B-425A-A345-560238CA2468",
190
- "QuestionId": "3D17A8A5-E299-47D3-AB49-684135DB23A3",
190
+ "QuestionId": "1123D17A8A5-E299-47D3-AB49-684135DB23A3",
191
191
  "Subject": "This is a Subject",
192
192
  "Description": "This is a description",
193
193
  "Grade": "25",
@@ -196,7 +196,7 @@ Primary.args = {
196
196
  },
197
197
  {
198
198
  "Id": "35562A64-A24B-425A-A345-560238CA2468",
199
- "QuestionId": "3D17A8A5-E299-47D3-AB49-684135DB23A3",
199
+ "QuestionId": "3sssD17A8A5-E299-47D3-AB49-684135DB23A3",
200
200
  "Subject": "This is a Subject",
201
201
  "Description": "This is a description",
202
202
  "Grade": "25",
@@ -37,7 +37,8 @@ const updateCategoryAnswers = (CategoryAnswers: any[], categoryToUpdate: any, up
37
37
  return {
38
38
  ...question,
39
39
  Answer: updatedQuestions[index].Answer,
40
- Note: updatedQuestions[index].Note
40
+ Note: updatedQuestions[index].Note,
41
+ Files: updatedQuestions[index].Files
41
42
  };
42
43
  });
43
44
  }
@@ -120,7 +121,6 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
120
121
  IsYesOrNo: IsYesOrNo
121
122
  };
122
123
 
123
- console.log(initial, "initial");
124
124
  setInitialValues(initial);
125
125
  form.setFieldsValue(initial);
126
126
  };
@@ -198,10 +198,6 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
198
198
 
199
199
  const updatedLocalData = { ...localData, CategoryAnswers: updatedCategory };
200
200
 
201
- console.log(updatedLocalData, "updatedLocalData");
202
- console.log(updatedCategory, "updatedCategory");
203
- console.log(updatedQuestions, "updatedQuestions");
204
-
205
201
  setLocalData(updatedLocalData);
206
202
  };
207
203
 
@@ -355,9 +351,9 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
355
351
  <div className={styles.actionsButtonsContainer}>
356
352
  <Upload
357
353
  listType={"text"}
358
- fileList={fileLists[`${selectedCategory.Data.CategoryId}_${question.QuestionId}`] || []}
354
+ fileList={fileLists[`${selectedCategory.Data.CategoryId}_${question.Id}`] || []}
359
355
  beforeUpload={() => false} // Prevent automatic upload
360
- onChange={({ fileList }) => handleFileChange(fileList, selectedCategory.Data.CategoryId, question.QuestionId)}
356
+ onChange={({ fileList }) => handleFileChange(fileList, selectedCategory.Data.CategoryId, question.Id)}
361
357
  onPreview={onPreview}
362
358
  >
363
359
  <Button customClass={styles.loadFile}>{t('components.upload.loadFile')}</Button>
@@ -197,8 +197,6 @@ export const ResponsiveTable = (props: ResponsiveTableCustomProps) => {
197
197
 
198
198
  }).filter(el => el !== undefined) as any;
199
199
 
200
- console.log();
201
-
202
200
  const columnActions = {
203
201
  key: 'action',
204
202
  title: headingTranslationsKey ? t(`${headingTranslationsKey}.${'action'}`) : 'action',