tsurupin/portfolio

View on GitHub
frontend/src/shared/reducers/abouts.js

Summary

Maintainability
A
0 mins
Test Coverage
import { FETCH_ABOUT } from 'shared/constants/actions';

export default function (state = {}, action) {
  switch (action.type) {
    case FETCH_ABOUT.SUCCESS:
      // payload -> { image, description }
      return action.payload;

    default:
      return state;
  }
}