listInitialState.js 585 Bytes
'use strict';

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

let templet = new(Record({
	firstLoad: true,
	isFetching: false,
	error: null,
	list:List(),
	currentPage: 0,
	pageCount: 0,
	pageSize: 50,
	total: 0,
	endReached: false,
}));

let typeMap1 = new(Record({
	all: '1',
	onPay: '2',
	onDelivery: '3',
	onReceive: '4',
}));

let typeMap = new(Record({
	1: 'all',
	2: 'onPay',
	3: 'onDelivery',
	4: 'onReceive',
}));

let InitialState = Record({
	showIndex: 0,
	all: templet,
	onPay: templet,
	onDelivery: templet,
	onReceive: templet,
	typeMap,
});

export default InitialState;