presale-demo-pe
Version:
This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).
26 lines (23 loc) • 478 B
JavaScript
const initialState = {
finished: false
};
export const FINISH_SALES = 'FINISH_SALES';
export const finishSales = () => (
{
type: FINISH_SALES,
payload: {
finished: true
}
}
);
export default (state = initialState, action) => {
switch (action.type) {
case FINISH_SALES:
return {
...state,
...action.payload
};
default:
return state
}
};