1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

clearing errors in dialog on input

This commit is contained in:
Fedor Katurov 2020-08-20 11:27:32 +07:00
parent f1463ed5ea
commit 88ee0601c8
6 changed files with 58 additions and 15 deletions

View file

@ -1,24 +0,0 @@
import { MODAL_HANDLERS } from '~/redux/modal/handlers';
import { createReducer } from '~/utils/reducer';
import { DIALOGS } from '~/redux/modal/constants';
import { ValueOf, IFile } from '~/redux/types';
export interface IModalState {
is_shown: boolean;
dialog: ValueOf<typeof DIALOGS>;
photoswipe: {
images: IFile[];
index: number;
};
}
const INITIAL_STATE: IModalState = {
is_shown: false,
dialog: null,
photoswipe: {
images: [],
index: 0,
},
};
export default createReducer(INITIAL_STATE, MODAL_HANDLERS);