brandInitialState.js 959 Bytes
'use strict';

import {Record, List, Map} from 'immutable';

let listData = Record({
	all_list: Map(),
	all_list_key: Map(),
	hot_list: List(),
	new_list: List(),
	hasSuccess: false,
});

let reourceData = Record({
	banner: Map(),
	custom_brands: Map(),
	brandsText: List(),
	hasSuccess: false,
});

let InitialState = Record({
	brandFliter: 0,
	selectedChannelId: 1,
	initialListSize: 0,

	isFetching: false,
	listError: null,
	brandListForBoy: new listData,
	brandListForGirl: new listData,
	brandListForKid: new listData,
	brandListForLifeStyle: new listData,

	reourceFetching: false,
	reourceError: null,
	reourceForBoy: new reourceData,
	reourceForGirl: new reourceData,
	reourceForKid: new reourceData,
	reourceForLifeStyle: new reourceData,
	
	showSearch: false,
	search: new (Record({
		history: List(),
		isFetching: false,
		error: null,
		hot: List(),
		filtedBrands: Map(),
		keyword: '',
		noData: false,
	})),
});

export default InitialState;