mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
logindialog initial
This commit is contained in:
parent
9220f09fe5
commit
6066c91060
5 changed files with 56 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
import { ValueOf } from "~/redux/types";
|
||||
import { HorizontalExample } from "~/containers/examples/HorizontalExample";
|
||||
import { ExampleDialog } from "~/containers/dialogs/ExampleDialog";
|
||||
import { LoginDialog } from "~/containers/dialogs/LoginDialog";
|
||||
|
||||
export const MODAL_ACTIONS = {
|
||||
SET_SHOWN: "MODAL.SET_SHOWN",
|
||||
|
@ -9,11 +10,13 @@ export const MODAL_ACTIONS = {
|
|||
};
|
||||
|
||||
export const DIALOGS = {
|
||||
TEST: "TEST"
|
||||
TEST: "TEST",
|
||||
LOGIN: "LOGIN"
|
||||
};
|
||||
|
||||
export const DIALOG_CONTENT = {
|
||||
[DIALOGS.TEST]: ExampleDialog
|
||||
[DIALOGS.TEST]: ExampleDialog,
|
||||
[DIALOGS.LOGIN]: LoginDialog
|
||||
};
|
||||
|
||||
export interface IDialogProps {
|
||||
|
|
|
@ -10,7 +10,7 @@ export interface IModalState {
|
|||
|
||||
const INITIAL_STATE: IModalState = {
|
||||
is_shown: true,
|
||||
dialog: DIALOGS.TEST
|
||||
dialog: DIALOGS.LOGIN
|
||||
};
|
||||
|
||||
export default createReducer(INITIAL_STATE, MODAL_HANDLERS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue