mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
tried grid
This commit is contained in:
parent
10b013f9a8
commit
125a120c85
6 changed files with 25 additions and 17 deletions
|
@ -37,4 +37,5 @@ export const EMPTY_UPLOAD_STATUS: IUploadStatus = {
|
|||
progress: 0,
|
||||
thumbnail_url: null,
|
||||
type: null,
|
||||
temp_id: null,
|
||||
}
|
|
@ -11,6 +11,7 @@ export interface IUploadStatus {
|
|||
type: string;
|
||||
thumbnail_url: string;
|
||||
progress: number;
|
||||
temp_id: UUID;
|
||||
}
|
||||
|
||||
export interface IUploadState {
|
||||
|
|
|
@ -49,6 +49,7 @@ function* uploadFile({ file, temp_id }: IFileWithUUID) {
|
|||
preview,
|
||||
is_uploading: true,
|
||||
type: file.type,
|
||||
temp_id,
|
||||
}
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue