chore(learn): Merge learn in to the client app
This commit is contained in:
9
client/utils/stateManagement.js
Normal file
9
client/utils/stateManagement.js
Normal file
@ -0,0 +1,9 @@
|
||||
export function createTypes(types = [], ns = 'annon') {
|
||||
return types.reduce(
|
||||
(types, action) => ({
|
||||
...types,
|
||||
[action]: `${ns}.${action}`
|
||||
}),
|
||||
{}
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user