mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
Modal
This commit is contained in:
parent
132fe872b6
commit
e5bc0d258f
17 changed files with 301 additions and 65 deletions
16
src/redux/modal/reducer.ts
Normal file
16
src/redux/modal/reducer.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { MODAL_HANDLERS } from "~/redux/modal/handlers";
|
||||
import { createReducer } from "~/utils/reducer";
|
||||
import { DIALOGS } from "~/redux/modal/constants";
|
||||
import { ValueOf } from "~/redux/types";
|
||||
|
||||
export interface IModalState {
|
||||
is_shown: boolean;
|
||||
dialog: ValueOf<typeof DIALOGS>;
|
||||
}
|
||||
|
||||
const INITIAL_STATE: IModalState = {
|
||||
is_shown: true,
|
||||
dialog: DIALOGS.TEST
|
||||
};
|
||||
|
||||
export default createReducer(INITIAL_STATE, MODAL_HANDLERS);
|
Loading…
Add table
Add a link
Reference in a new issue