Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default function paintingReducer(
- state = {
- painting_name: "",
- image: "",
- year: null,
- }, action) {
- switch ( action.type ) {
- case 'GET_PAINTING_SUCCESS':
- return action.painting;
- default:
- return state;
- }
- }
Add Comment
Please, Sign In to add comment