...
|
...
|
@@ -9,37 +9,37 @@ const { |
|
|
SET_BRAND_FILTER,
|
|
|
SET_CHANNEL_FILTER,
|
|
|
|
|
|
GETBRANDLIST_FOR_BOY_REQUEST,
|
|
|
GETBRANDLIST_FOR_BOY_SUCCESS,
|
|
|
GETBRANDLIST_FOR_BOY_FAILURE,
|
|
|
GET_BRAND_LIST_FOR_BOY_REQUEST,
|
|
|
GET_BRAND_LIST_FOR_BOY_SUCCESS,
|
|
|
GET_BRAND_LIST_FOR_BOY_FAILURE,
|
|
|
|
|
|
GETBRANDLIST_FOR_GIRL_REQUEST,
|
|
|
GETBRANDLIST_FOR_GIRL_SUCCESS,
|
|
|
GETBRANDLIST_FOR_GIRL_FAILURE,
|
|
|
GET_BRAND_LIST_FOR_GIRL_REQUEST,
|
|
|
GET_BRAND_LIST_FOR_GIRL_SUCCESS,
|
|
|
GET_BRAND_LIST_FOR_GIRL_FAILURE,
|
|
|
|
|
|
GETBRANDLIST_FOR_KID_REQUEST,
|
|
|
GETBRANDLIST_FOR_KID_SUCCESS,
|
|
|
GETBRANDLIST_FOR_KID_FAILURE,
|
|
|
GET_BRAND_LIST_FOR_KID_REQUEST,
|
|
|
GET_BRAND_LIST_FOR_KID_SUCCESS,
|
|
|
GET_BRAND_LIST_FOR_KID_FAILURE,
|
|
|
|
|
|
GETBRANDLIST_FOR_LIFESTYLE_REQUEST,
|
|
|
GETBRANDLIST_FOR_LIFESTYLE_SUCCESS,
|
|
|
GETBRANDLIST_FOR_LIFESTYLE_FAILURE,
|
|
|
GET_BRAND_LIST_FOR_LIFESTYLE_REQUEST,
|
|
|
GET_BRAND_LIST_FOR_LIFESTYLE_SUCCESS,
|
|
|
GET_BRAND_LIST_FOR_LIFESTYLE_FAILURE,
|
|
|
|
|
|
GETBRANDRESOURCE_FOR_BOY_REQUEST,
|
|
|
GETBRANDRESOURCE_FOR_BOY_SUCCESS,
|
|
|
GETBRANDRESOURCE_FOR_BOY_FAILURE,
|
|
|
GET_BRAND_RESOURCE_FOR_BOY_REQUEST,
|
|
|
GET_BRAND_RESOURCE_FOR_BOY_SUCCESS,
|
|
|
GET_BRAND_RESOURCE_FOR_BOY_FAILURE,
|
|
|
|
|
|
GETBRANDRESOURCE_FOR_GIRL_REQUEST,
|
|
|
GETBRANDRESOURCE_FOR_GIRL_SUCCESS,
|
|
|
GETBRANDRESOURCE_FOR_GIRL_FAILURE,
|
|
|
GET_BRAND_RESOURCE_FOR_GIRL_REQUEST,
|
|
|
GET_BRAND_RESOURCE_FOR_GIRL_SUCCESS,
|
|
|
GET_BRAND_RESOURCE_FOR_GIRL_FAILURE,
|
|
|
|
|
|
GETBRANDRESOURCE_FOR_KID_REQUEST,
|
|
|
GETBRANDRESOURCE_FOR_KID_SUCCESS,
|
|
|
GETBRANDRESOURCE_FOR_KID_FAILURE,
|
|
|
GET_BRAND_RESOURCE_FOR_KID_REQUEST,
|
|
|
GET_BRAND_RESOURCE_FOR_KID_SUCCESS,
|
|
|
GET_BRAND_RESOURCE_FOR_KID_FAILURE,
|
|
|
|
|
|
GETBRANDRESOURCE_FOR_LIFESTYLE_REQUEST,
|
|
|
GETBRANDRESOURCE_FOR_LIFESTYLE_SUCCESS,
|
|
|
GETBRANDRESOURCE_FOR_LIFESTYLE_FAILURE,
|
|
|
GET_BRAND_RESOURCE_FOR_LIFESTYLE_REQUEST,
|
|
|
GET_BRAND_RESOURCE_FOR_LIFESTYLE_SUCCESS,
|
|
|
GET_BRAND_RESOURCE_FOR_LIFESTYLE_FAILURE,
|
|
|
|
|
|
} = require('../../constants/actionTypes').default;
|
|
|
|
...
|
...
|
@@ -59,11 +59,11 @@ export default function brandReducer(state=initialState, action) { |
|
|
return state.set('channelFliter', action.payload);
|
|
|
}
|
|
|
|
|
|
case GETBRANDLIST_FOR_BOY_REQUEST:
|
|
|
case GET_BRAND_LIST_FOR_BOY_REQUEST:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_BOY_SUCCESS:
|
|
|
case GET_BRAND_LIST_FOR_BOY_SUCCESS:
|
|
|
{
|
|
|
let {
|
|
|
all_list,
|
...
|
...
|
@@ -75,15 +75,15 @@ export default function brandReducer(state=initialState, action) { |
|
|
.setIn(['brandListForBoy', 'hot_list'], Immutable.fromJS(hot_list))
|
|
|
.setIn(['brandListForBoy', 'new_list'], Immutable.fromJS(new_list));
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_BOY_FAILURE:
|
|
|
case GET_BRAND_LIST_FOR_BOY_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_GIRL_REQUEST:
|
|
|
case GET_BRAND_LIST_FOR_GIRL_REQUEST:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_GIRL_SUCCESS:
|
|
|
case GET_BRAND_LIST_FOR_GIRL_SUCCESS:
|
|
|
{
|
|
|
let {
|
|
|
all_list,
|
...
|
...
|
@@ -95,15 +95,15 @@ export default function brandReducer(state=initialState, action) { |
|
|
.setIn(['brandListForGirl', 'hot_list'], Immutable.fromJS(hot_list))
|
|
|
.setIn(['brandListForGirl', 'new_list'], Immutable.fromJS(new_list));
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_GIRL_FAILURE:
|
|
|
case GET_BRAND_LIST_FOR_GIRL_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_KID_REQUEST:
|
|
|
case GET_BRAND_LIST_FOR_KID_REQUEST:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_KID_SUCCESS:
|
|
|
case GET_BRAND_LIST_FOR_KID_SUCCESS:
|
|
|
{
|
|
|
let {
|
|
|
all_list,
|
...
|
...
|
@@ -115,15 +115,15 @@ export default function brandReducer(state=initialState, action) { |
|
|
.setIn(['brandListForKid', 'hot_list'], Immutable.fromJS(hot_list))
|
|
|
.setIn(['brandListForKid', 'new_list'], Immutable.fromJS(new_list));
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_KID_FAILURE:
|
|
|
case GET_BRAND_LIST_FOR_KID_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_LIFESTYLE_REQUEST:
|
|
|
case GET_BRAND_LIST_FOR_LIFESTYLE_REQUEST:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_LIFESTYLE_SUCCESS:
|
|
|
case GET_BRAND_LIST_FOR_LIFESTYLE_SUCCESS:
|
|
|
{
|
|
|
let {
|
|
|
all_list,
|
...
|
...
|
@@ -135,15 +135,15 @@ export default function brandReducer(state=initialState, action) { |
|
|
.setIn(['brandListForLifeStyle', 'hot_list'], Immutable.fromJS(hot_list))
|
|
|
.setIn(['brandListForLifeStyle', 'new_list'], Immutable.fromJS(new_list));
|
|
|
}
|
|
|
case GETBRANDLIST_FOR_LIFESTYLE_FAILURE:
|
|
|
case GET_BRAND_LIST_FOR_LIFESTYLE_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_BOY_REQUEST:
|
|
|
case GET_BRAND_RESOURCE_FOR_BOY_REQUEST:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_BOY_SUCCESS:
|
|
|
case GET_BRAND_RESOURCE_FOR_BOY_SUCCESS:
|
|
|
{
|
|
|
let {
|
|
|
banner,
|
...
|
...
|
@@ -155,16 +155,16 @@ export default function brandReducer(state=initialState, action) { |
|
|
.setIn(['reourceForBoy', 'custom_brands'], Immutable.fromJS(custom_brands))
|
|
|
.setIn(['reourceForBoy', 'brandsText'], Immutable.fromJS(brandsText))
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_BOY_FAILURE:
|
|
|
case GET_BRAND_RESOURCE_FOR_BOY_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
|
|
|
case GETBRANDRESOURCE_FOR_GIRL_REQUEST:
|
|
|
case GET_BRAND_RESOURCE_FOR_GIRL_REQUEST:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_GIRL_SUCCESS:
|
|
|
case GET_BRAND_RESOURCE_FOR_GIRL_SUCCESS:
|
|
|
{
|
|
|
let {
|
|
|
banner,
|
...
|
...
|
@@ -176,16 +176,16 @@ export default function brandReducer(state=initialState, action) { |
|
|
.setIn(['reourceForGirl', 'custom_brands'], Immutable.fromJS(custom_brands))
|
|
|
.setIn(['reourceForGirl', 'brandsText'], Immutable.fromJS(brandsText))
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_GIRL_FAILURE:
|
|
|
case GET_BRAND_RESOURCE_FOR_GIRL_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
|
|
|
case GETBRANDRESOURCE_FOR_KID_REQUEST:
|
|
|
case GET_BRAND_RESOURCE_FOR_KID_REQUEST:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_KID_SUCCESS:
|
|
|
case GET_BRAND_RESOURCE_FOR_KID_SUCCESS:
|
|
|
{
|
|
|
let {
|
|
|
banner,
|
...
|
...
|
@@ -197,16 +197,16 @@ export default function brandReducer(state=initialState, action) { |
|
|
.setIn(['reourceForKid', 'custom_brands'], Immutable.fromJS(custom_brands))
|
|
|
.setIn(['reourceForKid', 'brandsText'], Immutable.fromJS(brandsText))
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_KID_FAILURE:
|
|
|
case GET_BRAND_RESOURCE_FOR_KID_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
|
|
|
case GETBRANDRESOURCE_FOR_LIFESTYLE_REQUEST:
|
|
|
case GET_BRAND_RESOURCE_FOR_LIFESTYLE_REQUEST:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_LIFESTYLE_SUCCESS:
|
|
|
case GET_BRAND_RESOURCE_FOR_LIFESTYLE_SUCCESS:
|
|
|
{
|
|
|
let {
|
|
|
banner,
|
...
|
...
|
@@ -218,7 +218,7 @@ export default function brandReducer(state=initialState, action) { |
|
|
.setIn(['reourceForLifeStyle', 'custom_brands'], Immutable.fromJS(custom_brands))
|
|
|
.setIn(['reourceForLifeStyle', 'brandsText'], Immutable.fromJS(brandsText))
|
|
|
}
|
|
|
case GETBRANDRESOURCE_FOR_LIFESTYLE_FAILURE:
|
|
|
case GET_BRAND_RESOURCE_FOR_LIFESTYLE_FAILURE:
|
|
|
{
|
|
|
return state;
|
|
|
}
|
...
|
...
|
|