summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/components/elements/Appbar/Appbar.jsx2
-rw-r--r--src/core/utils/cart.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx
index 0fe087d3..2a19ec6c 100644
--- a/src/core/components/elements/Appbar/Appbar.jsx
+++ b/src/core/components/elements/Appbar/Appbar.jsx
@@ -6,7 +6,7 @@ const AppBar = ({ title }) => {
const router = useRouter()
return (
- <nav className="sticky top-0 z-50 bg-white shadow flex justify-between">
+ <nav className="sticky top-0 z-50 bg-white border-b border-gray_r-6 flex justify-between">
<div className="flex items-center">
<button type="button" className="p-4" onClick={() => router.back()}>
<ChevronLeftIcon className="w-6 stroke-2" />
diff --git a/src/core/utils/cart.js b/src/core/utils/cart.js
index 928d2ad1..52e157f2 100644
--- a/src/core/utils/cart.js
+++ b/src/core/utils/cart.js
@@ -18,7 +18,7 @@ const getItemCart = ({ productId }) => {
return cart[productId]
}
-const addItemCart = ({ productId, quantity, selected = false }) => {
+const updateItemCart = ({ productId, quantity, selected = false }) => {
let cart = getCart()
quantity = parseInt(quantity)
cart[productId] = { productId, quantity, selected }
@@ -36,6 +36,6 @@ const deleteItemCart = ({ productId }) => {
export {
getCart,
getItemCart,
- addItemCart,
+ updateItemCart,
deleteItemCart
} \ No newline at end of file