add proper types to store
This commit is contained in:
@@ -90,9 +90,11 @@ export default function Flatastic() {
|
||||
|
||||
const shoppingList = flatasticData?.shoppingList || [];
|
||||
|
||||
const shoppingListRender = shoppingList.map((item) => {
|
||||
return shoppingItem(item);
|
||||
});
|
||||
const shoppingListRender = shoppingList.map(
|
||||
(item: FlatasticShoppingItem) => {
|
||||
return shoppingItem(item);
|
||||
},
|
||||
);
|
||||
const shoppingListContainer = shoppingList.length > 0 && (
|
||||
<div className={style.shoppingListContainer}>
|
||||
<h1>Shopping List</h1>
|
||||
|
||||
Reference in New Issue
Block a user