You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. import ReducerRegistry from '../base/redux/ReducerRegistry';
  2. import { OPEN_WEB_APP } from './actionTypes';
  3. export interface IDeepLinkingState {
  4. launchInWeb?: boolean;
  5. }
  6. ReducerRegistry.register<IDeepLinkingState>('features/deep-linking', (state = {}, action): IDeepLinkingState => {
  7. switch (action.type) {
  8. case OPEN_WEB_APP: {
  9. return {
  10. ...state,
  11. launchInWeb: true
  12. };
  13. }
  14. }
  15. return state;
  16. });