Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Remove dead V2V_EDIT_PLAN_TITLE_SHOW_ALERT V2V_EDIT_PLAN_TITLE_HIDE_ALERT #1036

Merged
merged 1 commit into from
Sep 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import Immutable from 'seamless-immutable';
import {
V2V_EDIT_PLAN_TITLE_SHOW_ALERT,
V2V_EDIT_PLAN_TITLE_HIDE_ALERT,
V2V_POST_EDIT_PLAN_NAME
} from './EditPlanNameConstants';
import { V2V_POST_EDIT_PLAN_NAME } from './EditPlanNameConstants';

const initialState = Immutable({
alertText: '',
Expand All @@ -14,10 +10,6 @@ const initialState = Immutable({

export default (state = initialState, action) => {
switch (action.type) {
case V2V_EDIT_PLAN_TITLE_SHOW_ALERT:
return Immutable.merge(state, action.payload);
case V2V_EDIT_PLAN_TITLE_HIDE_ALERT:
return state.set('alertText', '');
case `${V2V_POST_EDIT_PLAN_NAME}_PENDING`:
return state
.set('savingPlan', true)
Expand Down