diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-20 11:35:25 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-20 11:35:25 +0700 |
| commit | 525166e62b793b351d1a6be2421c0a33b22f7b7b (patch) | |
| tree | a2bf86c4698771bc37b88218fc3f8e2e45a55ed7 /src/core/components/elements | |
| parent | d22df6bd30b8ed4bcfa938dcbbedc5fc376c2304 (diff) | |
cart refactor
Diffstat (limited to 'src/core/components/elements')
| -rw-r--r-- | src/core/components/elements/Appbar/Appbar.jsx | 2 | ||||
| -rw-r--r-- | src/core/components/elements/Popup/BottomPopup.jsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx index 2a19ec6c..8d060c44 100644 --- a/src/core/components/elements/Appbar/Appbar.jsx +++ b/src/core/components/elements/Appbar/Appbar.jsx @@ -19,7 +19,7 @@ const AppBar = ({ title }) => { <Link href="/shop/cart" className="py-4 px-2"> <ShoppingCartIcon className="w-6 text-gray_r-12" /> </Link> - <Link href="/shop/cart" className="py-4 px-2"> + <Link href="/" className="py-4 px-2"> <HomeIcon className="w-6 text-gray_r-12" /> </Link> <Link href="/shop/cart" className="py-4 px-2"> diff --git a/src/core/components/elements/Popup/BottomPopup.jsx b/src/core/components/elements/Popup/BottomPopup.jsx index e687cf20..5deceadf 100644 --- a/src/core/components/elements/Popup/BottomPopup.jsx +++ b/src/core/components/elements/Popup/BottomPopup.jsx @@ -6,7 +6,7 @@ const BottomPopup = ({ children, active, title, close }) => ( onClick={close} className={`overlay ${active ? 'block' : 'hidden'}`} /> - <div className={`fixed bottom-0 left-0 w-full border-t border-gray_r-6 rounded-t-xl z-[60] p-4 pt-0 bg-white ${active ? 'block' : 'hidden'}`}> + <div className={`fixed left-0 w-full border-t border-gray_r-6 rounded-t-xl z-[60] p-4 pt-0 bg-white idt-transition ${active ? 'bottom-0' : '-bottom-full'}`}> <div className="flex justify-between py-4"> <div className="font-semibold text-h-sm">{ title }</div> <button type="button" onClick={close}> |
