mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
Modal
This commit is contained in:
parent
132fe872b6
commit
e5bc0d258f
17 changed files with 301 additions and 65 deletions
21
src/redux/modal/constants.ts
Normal file
21
src/redux/modal/constants.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { ValueOf } from "~/redux/types";
|
||||
import { HorizontalExample } from "~/containers/examples/HorizontalExample";
|
||||
|
||||
export const MODAL_ACTIONS = {
|
||||
SET_SHOWN: "MODAL.SET_SHOWN",
|
||||
SET_DIALOG: "SET_DIALOG",
|
||||
SHOW_DIALOG: "SHOW_DIALOG"
|
||||
};
|
||||
|
||||
export const DIALOGS = {
|
||||
TEST: "TEST"
|
||||
};
|
||||
|
||||
export const DIALOG_CONTENT = {
|
||||
[DIALOGS.TEST]: HorizontalExample
|
||||
};
|
||||
|
||||
export interface IDialogProps {
|
||||
onRequestClose: () => void;
|
||||
onDialogChange: (dialog: ValueOf<typeof DIALOGS>) => void;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue