next-helios-fe 1.8.90 → 1.8.91

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": "next-helios-fe",
3
- "version": "1.8.90",
3
+ "version": "1.8.91",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -222,19 +222,21 @@ export const File: React.FC<FileProps> = ({
222
222
  <span>or drag and drop</span>
223
223
  </div>
224
224
  )}
225
- <span
226
- className={`text-sm font-light ${
227
- tempFile.length !== 0 ? "" : "text-disabled"
228
- }`}
229
- >
230
- {tempFile.length !== 0
231
- ? `${
232
- tempFile[0]?.size < 1000000
233
- ? `${tempFile[0]?.size / 1000} KB`
234
- : `${tempFile[0]?.size / 1000000} MB`
235
- }`
236
- : `Maximum file size ${options?.maxSizeInMb} MB`}
237
- </span>
225
+ {options?.maxSizeInMb && (
226
+ <span
227
+ className={`text-sm font-light ${
228
+ tempFile.length !== 0 ? "" : "text-disabled"
229
+ }`}
230
+ >
231
+ {tempFile.length !== 0
232
+ ? `${
233
+ tempFile[0]?.size < 1000000
234
+ ? `${tempFile[0]?.size / 1000} KB`
235
+ : `${tempFile[0]?.size / 1000000} MB`
236
+ }`
237
+ : `Maximum file size ${options?.maxSizeInMb} MB`}
238
+ </span>
239
+ )}
238
240
  </div>
239
241
  </div>
240
242
  </div>