Skip to content
Snippets Groups Projects
Select Git revision
  • a687d8efe6bf12c8f0264e32da34dace7af2cd32
  • master default
2 results

AuthSCHClient.class.php

Blame
  • Forked from an inaccessible project.
    AddNewsReducer.js 357 B
    import { WRITE_NEWS, CLEAR_WRITE } from '../actions/types';
    
    const INITIAL_STATE = { title: '', text: '' };
    
    export default (state = INITIAL_STATE, action) => {
      switch (action.type) {
        case WRITE_NEWS:
          return { ...state, [action.target]: action.payload };
        case CLEAR_WRITE:
          return INITIAL_STATE;
        default:
          return state;
      }
    };