mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
Modal
This commit is contained in:
parent
132fe872b6
commit
e5bc0d258f
17 changed files with 301 additions and 65 deletions
17
src/redux/modal/actions.ts
Normal file
17
src/redux/modal/actions.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { IModalState } from '~/redux/modal/reducer';
|
||||
import { MODAL_ACTIONS } from '~/redux/modal/constants';
|
||||
|
||||
export const modalSetShown = (is_shown: IModalState['is_shown']) => ({
|
||||
is_shown,
|
||||
type: MODAL_ACTIONS.SET_SHOWN,
|
||||
});
|
||||
|
||||
export const modalSetDialog = (dialog: IModalState['dialog']) => ({
|
||||
dialog,
|
||||
type: MODAL_ACTIONS.SET_DIALOG,
|
||||
});
|
||||
|
||||
export const modalShowDialog = (dialog: IModalState['dialog']) => ({
|
||||
dialog,
|
||||
type: MODAL_ACTIONS.SHOW_DIALOG,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue