web-installer/src/redux/reducers/generalReducer.js
// Reducers to remove from list of all dockerHub configs
Reducers to remove from list of all dockerHub configs
Reducers to remove from list of all dockerHub configs
function allDockerHubs(state = [], action) {
  switch (action.type) {
    case ADD_DOCKER:
      if (state.includes(action.payload.id)) {
        return state;
      }
      return state.concat(action.payload.id);
    case REMOVE_DOCKER:
      return state.filter((config) => config !== action.payload.id);
    default:
      return state;
  }
}
function allDockerHubs ( state = [ ] , action ) { switch ( action . type ) { case ADD_DOCKER : if ( state . includes ( action . payload . id ) ) { return state ; } return state . concat ( action . payload . id ) ; case REMOVE_DOCKER : return state . filter ( ( config ) => config !== action . payload . id ) ; default : return state ; } }
Reducers to remove from list of all dockerHub configs
Reducers to remove from list of all dockerHub configs