mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
empty file
This commit is contained in:
parent
5045fbce8b
commit
ba26b374ba
4 changed files with 110 additions and 84 deletions
12
src/redux/uploads/mocks.ts
Normal file
12
src/redux/uploads/mocks.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { IResultWithStatus, IFile } from "../types";
|
||||
import { HTTP_RESPONSES } from "~/utils/api";
|
||||
|
||||
export const uploadMock = (file: File): Promise<IResultWithStatus<IFile>> => (
|
||||
Promise.resolve(() => ({
|
||||
status: HTTP_RESPONSES.CREATED,
|
||||
data: {
|
||||
...EMPTY_FILE,
|
||||
},
|
||||
error: null,
|
||||
}))
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue