mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
eslint fix
This commit is contained in:
parent
dfaac877fb
commit
fa4d51360b
81 changed files with 741 additions and 972 deletions
|
@ -1,30 +1,30 @@
|
|||
import { UPLOAD_ACTIONS } from "~/redux/uploads/constants";
|
||||
import { IFileWithUUID, UUID, IFile } from "../types";
|
||||
import { IUploadStatus } from "./reducer";
|
||||
import { UPLOAD_ACTIONS } from '~/redux/uploads/constants';
|
||||
import { IFileWithUUID, UUID, IFile } from '../types';
|
||||
import { IUploadStatus } from './reducer';
|
||||
|
||||
export const uploadUploadFiles = (files: IFileWithUUID[]) => ({
|
||||
files,
|
||||
type: UPLOAD_ACTIONS.UPLOAD_FILES,
|
||||
type: UPLOAD_ACTIONS.UPLOAD_FILES
|
||||
});
|
||||
|
||||
export const uploadAddStatus = (temp_id: UUID, status?: Partial<IUploadStatus>) => ({
|
||||
temp_id,
|
||||
status,
|
||||
type: UPLOAD_ACTIONS.ADD_STATUS,
|
||||
type: UPLOAD_ACTIONS.ADD_STATUS
|
||||
});
|
||||
|
||||
export const uploadAddFile = (file: IFile) => ({
|
||||
file,
|
||||
type: UPLOAD_ACTIONS.ADD_FILE,
|
||||
type: UPLOAD_ACTIONS.ADD_FILE
|
||||
});
|
||||
|
||||
export const uploadSetStatus = (temp_id: UUID, status?: Partial<IUploadStatus>) => ({
|
||||
temp_id,
|
||||
status,
|
||||
type: UPLOAD_ACTIONS.SET_STATUS,
|
||||
type: UPLOAD_ACTIONS.SET_STATUS
|
||||
});
|
||||
|
||||
export const uploadDropStatus = (temp_id: UUID) => ({
|
||||
temp_id,
|
||||
type: UPLOAD_ACTIONS.DROP_STATUS,
|
||||
type: UPLOAD_ACTIONS.DROP_STATUS
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue