...
|
...
|
@@ -73,11 +73,13 @@ export default function brandReducer(state=initialState, action) { |
|
|
|
|
|
return state.setIn(['brandListForBoy', 'all_list'], Immutable.fromJS(all_list))
|
|
|
.setIn(['brandListForBoy', 'hot_list'], Immutable.fromJS(hot_list))
|
|
|
.setIn(['brandListForBoy', 'new_list'], Immutable.fromJS(new_list));
|
|
|
.setIn(['brandListForBoy', 'new_list'], Immutable.fromJS(new_list))
|
|
|
.setIn(['brandListForBoy', 'hasSuccess'], true);
|
|
|
|
|
|
}
|
|
|
case GET_BRAND_LIST_FOR_BOY_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
return state.setIn(['brandListForBoy', 'hasSuccess'], false);
|
|
|
}
|
|
|
case GET_BRAND_LIST_FOR_GIRL_REQUEST:
|
|
|
{
|
...
|
...
|
@@ -93,11 +95,12 @@ export default function brandReducer(state=initialState, action) { |
|
|
|
|
|
return state.setIn(['brandListForGirl', 'all_list'], Immutable.fromJS(all_list))
|
|
|
.setIn(['brandListForGirl', 'hot_list'], Immutable.fromJS(hot_list))
|
|
|
.setIn(['brandListForGirl', 'new_list'], Immutable.fromJS(new_list));
|
|
|
.setIn(['brandListForGirl', 'new_list'], Immutable.fromJS(new_list))
|
|
|
.setIn(['brandListForGirl', 'hasSuccess'], true);
|
|
|
}
|
|
|
case GET_BRAND_LIST_FOR_GIRL_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
return state.setIn(['brandListForGirl', 'hasSuccess'], false);
|
|
|
}
|
|
|
case GET_BRAND_LIST_FOR_KID_REQUEST:
|
|
|
{
|
...
|
...
|
@@ -113,11 +116,12 @@ export default function brandReducer(state=initialState, action) { |
|
|
|
|
|
return state.setIn(['brandListForKid', 'all_list'], Immutable.fromJS(all_list))
|
|
|
.setIn(['brandListForKid', 'hot_list'], Immutable.fromJS(hot_list))
|
|
|
.setIn(['brandListForKid', 'new_list'], Immutable.fromJS(new_list));
|
|
|
.setIn(['brandListForKid', 'new_list'], Immutable.fromJS(new_list))
|
|
|
.setIn(['brandListForKid', 'hasSuccess'], true);
|
|
|
}
|
|
|
case GET_BRAND_LIST_FOR_KID_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
return state.setIn(['brandListForKid', 'hasSuccess'], false);
|
|
|
}
|
|
|
case GET_BRAND_LIST_FOR_LIFESTYLE_REQUEST:
|
|
|
{
|
...
|
...
|
@@ -133,11 +137,12 @@ export default function brandReducer(state=initialState, action) { |
|
|
|
|
|
return state.setIn(['brandListForLifeStyle', 'all_list'], Immutable.fromJS(all_list))
|
|
|
.setIn(['brandListForLifeStyle', 'hot_list'], Immutable.fromJS(hot_list))
|
|
|
.setIn(['brandListForLifeStyle', 'new_list'], Immutable.fromJS(new_list));
|
|
|
.setIn(['brandListForLifeStyle', 'new_list'], Immutable.fromJS(new_list))
|
|
|
.setIn(['brandListForLifeStyle', 'hasSuccess'], true);
|
|
|
}
|
|
|
case GET_BRAND_LIST_FOR_LIFESTYLE_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
return state.setIn(['brandListForLifeStyle', 'hasSuccess'], false);
|
|
|
}
|
|
|
case GET_BRAND_RESOURCE_FOR_BOY_REQUEST:
|
|
|
{
|
...
|
...
|
@@ -154,10 +159,11 @@ export default function brandReducer(state=initialState, action) { |
|
|
return state.setIn(['reourceForBoy', 'banner'], Immutable.fromJS(banner))
|
|
|
.setIn(['reourceForBoy', 'custom_brands'], Immutable.fromJS(custom_brands))
|
|
|
.setIn(['reourceForBoy', 'brandsText'], Immutable.fromJS(brandsText))
|
|
|
.setIn(['reourceForBoy', 'hasSuccess'], true);
|
|
|
}
|
|
|
case GET_BRAND_RESOURCE_FOR_BOY_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
return state.setIn(['reourceForBoy', 'hasSuccess'], false);
|
|
|
}
|
|
|
|
|
|
case GET_BRAND_RESOURCE_FOR_GIRL_REQUEST:
|
...
|
...
|
@@ -175,10 +181,11 @@ export default function brandReducer(state=initialState, action) { |
|
|
return state.setIn(['reourceForGirl', 'banner'], Immutable.fromJS(banner))
|
|
|
.setIn(['reourceForGirl', 'custom_brands'], Immutable.fromJS(custom_brands))
|
|
|
.setIn(['reourceForGirl', 'brandsText'], Immutable.fromJS(brandsText))
|
|
|
.setIn(['reourceForGirl', 'hasSuccess'], true);
|
|
|
}
|
|
|
case GET_BRAND_RESOURCE_FOR_GIRL_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
return state.setIn(['reourceForGirl', 'hasSuccess'], false);
|
|
|
}
|
|
|
|
|
|
case GET_BRAND_RESOURCE_FOR_KID_REQUEST:
|
...
|
...
|
@@ -196,10 +203,11 @@ export default function brandReducer(state=initialState, action) { |
|
|
return state.setIn(['reourceForKid', 'banner'], Immutable.fromJS(banner))
|
|
|
.setIn(['reourceForKid', 'custom_brands'], Immutable.fromJS(custom_brands))
|
|
|
.setIn(['reourceForKid', 'brandsText'], Immutable.fromJS(brandsText))
|
|
|
.setIn(['reourceForKid', 'hasSuccess'], true);
|
|
|
}
|
|
|
case GET_BRAND_RESOURCE_FOR_KID_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
return state.setIn(['reourceForKid', 'hasSuccess'], false);
|
|
|
}
|
|
|
|
|
|
case GET_BRAND_RESOURCE_FOR_LIFESTYLE_REQUEST:
|
...
|
...
|
@@ -217,10 +225,11 @@ export default function brandReducer(state=initialState, action) { |
|
|
return state.setIn(['reourceForLifeStyle', 'banner'], Immutable.fromJS(banner))
|
|
|
.setIn(['reourceForLifeStyle', 'custom_brands'], Immutable.fromJS(custom_brands))
|
|
|
.setIn(['reourceForLifeStyle', 'brandsText'], Immutable.fromJS(brandsText))
|
|
|
.setIn(['reourceForLifeStyle', 'hasSuccess'], true);
|
|
|
}
|
|
|
case GET_BRAND_RESOURCE_FOR_LIFESTYLE_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
return state.setIn(['reourceForLifeStyle', 'hasSuccess'], false);
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|