web-installer/src/redux/reducers/generalReducer.js
// Reducers to add and remove dockerHub configurations from global state
Reducers to add and remove dockerHub configurations from global state
Reducers to add and remove dockerHub configurations from global state
function dockerHubsById(state = {}, action) {
  switch (action.type) {
    case ADD_DOCKER:
      return {
        ...state,
        [action.payload.id]: action.payload,
      };
    case REMOVE_DOCKER:
      return _.omit(state, action.payload.id);
    default:
      return state;
  }
}
function dockerHubsById ( state = { } , action ) { switch ( action . type ) { case ADD_DOCKER : return { ... state , [ action . payload . id ] : action . payload , } ; case REMOVE_DOCKER : return _ . omit ( state , action . payload . id ) ; default : return state ; } }
Reducers to add and remove dockerHub configurations from global state
Reducers to add and remove dockerHub configurations from global state