UNPKG

fb-test-module

Version:

How to use: ``` import {store, getStore} from 'fb-test-module'; conf.DialogramApi = "API_BASE_URL"; conf.Platform = "mobile"; //use "web" if you are on webApp getStore(); //Inject store in your provider ``` and you'r readyt to go. # Base ## Act

17 lines (15 loc) 369 B
import { ApiType } from '../BaseType'; import { USER_ENTITY, REMOVE_USER } from './Type'; export const getUser = () => ({ type: ApiType.Dialogram, payload: { meta: { entity: USER_ENTITY, method: "get", url: "/api/user/" } } }) export const removeUser = () => ({ type: REMOVE_USER, })