stuff done

This commit is contained in:
2025-03-11 02:54:09 +02:00
parent 58e7ed2f06
commit 516b45fad9
90 changed files with 2950 additions and 9458 deletions

View File

@@ -18,6 +18,7 @@ interface CartState {
increaseQuantity: (productId: number) => void
decreaseQuantity: (productId: number) => void
removeItemFromCart: (productId: number) => void
clearCart: () => void
}
const useCartStore = create(
@@ -88,6 +89,10 @@ const useCartStore = create(
set({cartItems: updatedCartItems})
}
}
},
clearCart: () => {
set({cartItems: []})
}
}),
{