1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

submit bar

This commit is contained in:
Fedor Katurov 2019-10-16 10:10:27 +07:00
parent 6bb24fc869
commit 3fdf14d680
10 changed files with 131 additions and 24 deletions

View file

@ -1,5 +1,4 @@
import { ValueOf } from '~/redux/types';
import { HorizontalExample } from '~/containers/examples/HorizontalExample';
import { EditorDialog } from '~/containers/dialogs/EditorDialog';
import { LoginDialog } from '~/containers/dialogs/LoginDialog';
@ -10,12 +9,12 @@ export const MODAL_ACTIONS = {
};
export const DIALOGS = {
EDITOR: 'EDITOR',
EDITOR_IMAGE: 'EDITOR_IMAGE',
LOGIN: 'LOGIN',
};
export const DIALOG_CONTENT = {
[DIALOGS.EDITOR]: EditorDialog,
[DIALOGS.EDITOR_IMAGE]: EditorDialog,
[DIALOGS.LOGIN]: LoginDialog,
};

View file

@ -10,7 +10,7 @@ export interface IModalState {
const INITIAL_STATE: IModalState = {
is_shown: false,
dialog: DIALOGS.EDITOR,
dialog: null,
};
export default createReducer(INITIAL_STATE, MODAL_HANDLERS);