redux: auth and map init

This commit is contained in:
muerwre 2018-11-26 11:56:19 +07:00
parent dca55a3bc4
commit df6202c32d
17 changed files with 325 additions and 163 deletions

18
src/constants/types.js Normal file
View file

@ -0,0 +1,18 @@
import { ROLES } from '$constants/auth';
export type UserType = {
new_messages: Number,
place_types: Object,
random_url: String,
role: String,
routes: Array<Object>,
success: Boolean,
id: String,
token: String,
userdata: {
name: String,
agent: String,
ip: String,
photo: String,
}
};