@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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.26-prod",
2
+ "version": "0.1.27-prod",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -7,8 +7,8 @@ import { notification } from 'antd';
7
7
  // Store uploaded files
8
8
  export const uploadedFilesAtom = atom<File[]>([]);
9
9
 
10
- // Allowed photo MIME types
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) Only</Text2>
115
+ <Text2>Photos (JPEG, PNG) or PDF documents</Text2>
116
116
  </TextContainer>
117
117
  </Container>
118
118
  </DraggerContainer>
@@ -228,10 +228,13 @@ function CreateReminderModal() {
228
228
  }
229
229
  }, [fetchData]);
230
230
 
231
- const userOptions = filteredUsers?.map((user: any) => ({
232
- label: `${user.fName} ${user.lName}`,
233
- value: user.id,
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');