%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/higroup/wp-content/plugins/event-tickets/src/modules/data/shared/move/reducers/
Upload File :
Create Path :
Current File : /var/www/html/higroup/wp-content/plugins/event-tickets/src/modules/data/shared/move/reducers/ui.js

/**
 * Internal dependencies
 */
import * as types from '@moderntribe/tickets/data/shared/move/types';

export const DEFAULT_STATE = {
	showModal: false,
};

export default function ui( state = DEFAULT_STATE, action ) {
	switch ( action.type ) {
		case types.SHOW_MODAL:
			return {
				...state,
				showModal: true,
			};
		case types.HIDE_MODAL:
			return {
				...state,
				showModal: false,
			};
		default:
			return state;
	}
}


Zerion Mini Shell 1.0