made it look prettier. working on fixing product editor.

This commit is contained in:
Jordan
2024-06-29 06:09:22 -07:00
parent 7c2289098e
commit de0167e9e5
9 changed files with 171 additions and 103 deletions

View File

@ -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