brandInitialState.js 1.21 KB
'use strict';

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

let InitialState = Record({
	brandFliter: 0,
	channelFliter:0,
	brandListForBoy: new (Record({
		all_list: Map(),
		hot_list: List(),
		new_list: List(),
		hasSuccess: false,
	})),
	brandListForGirl: new (Record({
		all_list: Map(),
		hot_list: List(),
		new_list: List(),
		hasSuccess: false,
	})),
	brandListForKid: new (Record({
		all_list: Map(),
		hot_list: List(),
		new_list: List(),
		hasSuccess: false,
	})),
	brandListForLifeStyle: new (Record({
		all_list: Map(),
		hot_list: List(),
		new_list: List(),
		hasSuccess: false,
	})),
	reourceForBoy: new (Record({
		banner: Map(),
		custom_brands: Map(),
		brandsText: List(),
		hasSuccess: false,
	})),
	reourceForGirl: new (Record({
		banner: Map(),
		custom_brands: Map(),
		brandsText: List(),
		hasSuccess: false,
	})),
	reourceForKid: new (Record({
		banner: Map(),
		custom_brands: Map(),
		brandsText: List(),
		hasSuccess: false,
	})),
	reourceForLifeStyle: new (Record({
		banner: Map(),
		custom_brands: Map(),
		brandsText: List(),
		hasSuccess: false,
	})),
	showSearch: false,
	search: new (Record({
		history: List(),
		isFetching: false,
		error: null,
		hot: List(),
	})),
});

export default InitialState;