mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-04 07:21:38 +00:00
feat: show in progress upload in upload btn
This commit is contained in:
@@ -26,6 +26,8 @@ export const clearFileUploadAtom = atom(null, (get, set, id: string) => {
|
||||
set(fileUploadsAtom, fileUploads)
|
||||
})
|
||||
|
||||
export const hasFileUploadsAtom = atom(
|
||||
(get) => Object.keys(get(fileUploadsAtom)).length > 0,
|
||||
export const fileUploadCountAtom = atom(
|
||||
(get) => Object.keys(get(fileUploadsAtom)).length,
|
||||
)
|
||||
|
||||
export const hasFileUploadsAtom = atom((get) => get(fileUploadCountAtom) > 0)
|
||||
|
||||
Reference in New Issue
Block a user