diff options
| author | 2024-09-11 17:17:14 +0100 | |
|---|---|---|
| committer | 2024-09-11 17:17:14 +0100 | |
| commit | 5ccaae56404df5f8dc16b3eebe17fe1d88d62d5f (patch) | |
| tree | d9bc4b2ffe8574be18d0ad80664d063f98be3556 /thallium-frontend/src/components/CartStatus.tsx | |
| parent | Type corrections (diff) | |
Fix eslint
Diffstat (limited to 'thallium-frontend/src/components/CartStatus.tsx')
| -rw-r--r-- | thallium-frontend/src/components/CartStatus.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/thallium-frontend/src/components/CartStatus.tsx b/thallium-frontend/src/components/CartStatus.tsx index 848e1cc..5b6d1e8 100644 --- a/thallium-frontend/src/components/CartStatus.tsx +++ b/thallium-frontend/src/components/CartStatus.tsx @@ -21,7 +21,7 @@ margin-bottom: 30px; right: 0; margin-right: 30px; transition: all 0.25s; -` +`; const CartStatus = () => { const cart = useSelector((state: RootState) => state.cart); @@ -32,16 +32,16 @@ const CartStatus = () => { const buttonVisible = useVisible(staticButtonRef); useEffect(() => { - console.log(buttonVisible) - }, [buttonVisible]) + console.log(buttonVisible); + }, [buttonVisible]); - const checkoutMsg = total > 0 ? "Checkout >" : "Add some items to proceed to checkout" + const checkoutMsg = total > 0 ? "Checkout >" : "Add some items to proceed to checkout"; const navigate = useNavigate(); const buttonCallback = () => { navigate("/checkout"); - } + }; return <> <StatusHolder>You currently have {total} item{total !== 1 ? "s" : null} in your cart, totalling ${price.toFixed(2)} USD</StatusHolder> |