department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-secure-messaging/reducers/app.js

Summary

Maintainability
A
0 mins
Test Coverage
import { Actions } from '../util/actionTypes';

const initialState = {
  isPilot: false,
};

export const appReducer = (state = initialState, action) => {
  if (action.type === Actions.App.IS_PILOT) {
    return {
      isPilot: true,
    };
  }
  return state;
};