@campxdev/shared 1.11.26 → 1.11.28

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": "@campxdev/shared",
3
- "version": "1.11.26",
3
+ "version": "1.11.28",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -132,8 +132,8 @@ export default function ReportHeader({
132
132
  }}
133
133
  src={
134
134
  logoImageUrl ||
135
- current?.images?.url ||
136
- masterInstitution?.images?.url
135
+ current?.image?.url ||
136
+ masterInstitution?.image?.url
137
137
  }
138
138
  />
139
139
  {!hideRecognitionDetails && (
@@ -80,7 +80,7 @@ interface UploadFileDialogProps {
80
80
  sampleFileDownloadUrl?: string
81
81
  uploadUrl: string
82
82
  successMessage?: string
83
- refetchFn: () => void
83
+ refetchFn: (res: any) => void
84
84
  postBody?: { [key: string]: string }
85
85
  }
86
86
 
@@ -129,7 +129,7 @@ export default function UploadFileDialog({
129
129
  .post(uploadUrl, formData)
130
130
  .then((res) => {
131
131
  setLoading(false)
132
- refetchFn()
132
+ refetchFn(res)
133
133
  setOpen(false)
134
134
  toast.success(successMessage ?? 'Successful')
135
135
  setFile(null)