start to refactor components.

This commit is contained in:
Jordan
2024-06-30 19:49:41 -07:00
parent 408a996fe7
commit fb68beb1b3
12 changed files with 421 additions and 300 deletions

View File

@ -147,7 +147,7 @@ const productsState = createSlice({
});
export const selectProducts = (state: RootState) => {
return state.products.map(Product.fromObject);
return state.products.map(obj => Product.fromObject(obj));
}
export const selectProductIds = createSelector([selectProducts], products => {