mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-13 23:56:25 +00:00
finish removing loading entities
This commit is contained in:
parent
91a311196f
commit
a4c82e5e5d
@ -1,13 +1,12 @@
|
||||
export const REQUEST = 'REQUEST';
|
||||
export const SUCCESS = 'SUCCESS';
|
||||
export const FAILURE = 'FAILURE';
|
||||
export const ENTITY = 'ENTITY';
|
||||
|
||||
function createRequestTypes(base) {
|
||||
return [REQUEST, SUCCESS, FAILURE].reduce((acc, type) => {
|
||||
acc[type] = `${base}_${type}`;
|
||||
return acc;
|
||||
}, { id: 0 });
|
||||
}, {});
|
||||
}
|
||||
|
||||
function action(type, payload = {}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user