@bjsdistribution/dms-client-return 0.1.26-prod → 0.1.27-prod
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/dist/dms-client-return.cjs.development.js +6 -6
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +6 -6
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-view/order-actions/actions/add-resources/DocFileUpload.tsx +4 -4
- package/src/components/order-view/order-actions/actions/create-task-reminder/CreateReminderModal.tsx +7 -4
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@ import { notification } from 'antd';
|
|
|
7
7
|
// Store uploaded files
|
|
8
8
|
export const uploadedFilesAtom = atom<File[]>([]);
|
|
9
9
|
|
|
10
|
-
// Allowed
|
|
11
|
-
const allowedFileTypes = ['image/jpeg', 'image/png'];
|
|
10
|
+
// Allowed file MIME types
|
|
11
|
+
const allowedFileTypes = ['image/jpeg', 'image/png', 'application/pdf'];
|
|
12
12
|
|
|
13
13
|
function DocFileUpload() {
|
|
14
14
|
const [uploadedFiles, setUploadedFiles] = useAtom(uploadedFilesAtom);
|
|
@@ -53,7 +53,7 @@ function DocFileUpload() {
|
|
|
53
53
|
if (rejectedFiles?.length > 0) {
|
|
54
54
|
notification.error({
|
|
55
55
|
message: 'Some files were not added',
|
|
56
|
-
description: 'Either they were duplicates or not JPEG/PNG format.',
|
|
56
|
+
description: 'Either they were duplicates or not JPEG/PNG/PDF format.',
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -112,7 +112,7 @@ function DocFileUpload() {
|
|
|
112
112
|
</IconContainer>
|
|
113
113
|
<TextContainer>
|
|
114
114
|
<Text1>or drag and drop your files</Text1>
|
|
115
|
-
<Text2>Photos (JPEG, PNG)
|
|
115
|
+
<Text2>Photos (JPEG, PNG) or PDF documents</Text2>
|
|
116
116
|
</TextContainer>
|
|
117
117
|
</Container>
|
|
118
118
|
</DraggerContainer>
|
package/src/components/order-view/order-actions/actions/create-task-reminder/CreateReminderModal.tsx
CHANGED
|
@@ -228,10 +228,13 @@ function CreateReminderModal() {
|
|
|
228
228
|
}
|
|
229
229
|
}, [fetchData]);
|
|
230
230
|
|
|
231
|
-
const userOptions =
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
const userOptions =
|
|
232
|
+
selectedDeptId?.length > 0
|
|
233
|
+
? filteredUsers?.map((user: any) => ({
|
|
234
|
+
label: `${user.fName} ${user.lName}`,
|
|
235
|
+
value: user.id,
|
|
236
|
+
}))
|
|
237
|
+
: [];
|
|
235
238
|
|
|
236
239
|
const handleAssignToMe = () => {
|
|
237
240
|
const storedUserJSON = localStorage.getItem('user_type');
|