Commit 5ea3831a authored by prumde's avatar prumde

Added ecm-store component.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174355 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5f4eaabe
import { Category, SubCategory, Item } from './ecm-category/category-model';
export class EcmStoreModel {
category: Category;
subCategory: SubCategory;
item: Item;
};
export const CATEGORY = (state: any = null, {type, payload}) => {
switch (type) {
case 'CATEGORY':
return payload;
case 'CLEAR_CATEGORY':
return state=null;
default:
return state;
}
};
export const SUBCATEGORY = (state: any = null, {type, payload}) => {
switch (type) {
case 'SUB_CATEGORY':
return payload;
case 'CLEAR_SUB_CATEGORY':
return state=null;
default:
return state;
}
};
export const ITEM = (state: any = null, {type, payload}) => {
switch (type) {
case 'ITEM':
return payload;
default:
return state;
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment