made it look prettier. working on fixing product editor.
This commit is contained in:
@ -45,6 +45,14 @@ export const selectProducts = (state : RootState) => {
|
||||
return state.products;
|
||||
}
|
||||
|
||||
export const productIds = (state : RootState) => {
|
||||
return state.products.map(p => p.id);
|
||||
}
|
||||
|
||||
export const getProductById = (state : RootState, id : Id) => {
|
||||
return state.products.find(x => x.id === id);
|
||||
}
|
||||
|
||||
|
||||
export const actions = {
|
||||
...productsState.actions
|
||||
|
Reference in New Issue
Block a user