1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00
This commit is contained in:
muerwre 2019-08-09 14:35:35 +07:00
parent d9a56255c5
commit 9a8e5efd1a
4 changed files with 27 additions and 12 deletions

View file

@ -1,5 +1,6 @@
import { IState } from '~/redux/store';
export const selectAuth = (state: IState): IState['auth'] => state.auth;
export const selectUser = (state: IState): IState['auth']['user'] => state.auth.user;
export const selectToken = (state: IState): IState['auth']['token'] => state.auth.token;
export const selectAuthLogin = (state: IState): IState['auth']['login'] => state.auth.login;

View file

@ -2,8 +2,9 @@ import { IBlock, INode } from '../types';
export const EMPTY_BLOCK: IBlock = {
type: null,
temp_ids: [],
attaches: [],
files: [],
content: null,
embeds: [],
};
export const EMPTY_NODE: INode = {
@ -23,6 +24,6 @@ export const EMPTY_NODE: INode = {
flow: {
display: 'single',
show_description: false,
}
},
},
};