reducers.ts 343 B

123456789101112131415
  1. import { UserState } from 'app/types';
  2. import config from 'app/core/config';
  3. export const initialState: UserState = {
  4. orgId: config.bootData.user.orgId,
  5. timeZone: config.bootData.user.timezone,
  6. };
  7. export const userReducer = (state = initialState, action: any): UserState => {
  8. return state;
  9. };
  10. export default {
  11. user: userReducer,
  12. };