From fc269e3f989e01e7aa1319919aa573de81d54839 Mon Sep 17 00:00:00 2001 From: Jason Gao Date: Mon, 27 May 2024 09:59:49 +0800 Subject: [PATCH] add purchase link to the index page on mobile --- src/components/PurchaseButton.js | 8 +++++--- src/pages/index.js | 22 ++++++++++++++++++++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/components/PurchaseButton.js b/src/components/PurchaseButton.js index 40e0862..73cce79 100644 --- a/src/components/PurchaseButton.js +++ b/src/components/PurchaseButton.js @@ -17,7 +17,7 @@ const links = [ }, ]; -const PurchaseButton = () => { +const PurchaseButton = ({ aligned = 'right', className }) => { const [isOpen, setIsOpen] = useState(false); const dropdownRef = useRef(null); @@ -45,7 +45,7 @@ const PurchaseButton = () => { }, []); return ( -
+
{isOpen && ( -