diff --git a/components/cart/CartSidebarView/CartSidebarView.tsx b/components/cart/CartSidebarView/CartSidebarView.tsx index 9f5421519..7440a8d81 100644 --- a/components/cart/CartSidebarView/CartSidebarView.tsx +++ b/components/cart/CartSidebarView/CartSidebarView.tsx @@ -33,7 +33,7 @@ const CartSidebarView: FC = () => { return (
{ {isEmpty ? (
- +

@@ -116,7 +116,7 @@ const CartSidebarView: FC = () => {
  • Estimated Shipping - FREE + FREE
  • diff --git a/components/core/Avatar/Avatar.tsx b/components/core/Avatar/Avatar.tsx index 3797f8073..b7928d4f2 100644 --- a/components/core/Avatar/Avatar.tsx +++ b/components/core/Avatar/Avatar.tsx @@ -12,7 +12,7 @@ const Avatar: FC = ({}) => { return (
    = ({ className }) => {
    - + diff --git a/components/core/UserNav/DropdownMenu.module.css b/components/core/UserNav/DropdownMenu.module.css index 755d34974..f81b920ef 100644 --- a/components/core/UserNav/DropdownMenu.module.css +++ b/components/core/UserNav/DropdownMenu.module.css @@ -15,6 +15,10 @@ @apply bg-accents-1; } +.link.active { + @apply font-bold bg-accents-2; +} + .off { @apply hidden; } diff --git a/components/core/UserNav/DropdownMenu.tsx b/components/core/UserNav/DropdownMenu.tsx index dbdf960da..82121605e 100644 --- a/components/core/UserNav/DropdownMenu.tsx +++ b/components/core/UserNav/DropdownMenu.tsx @@ -6,6 +6,8 @@ import s from './DropdownMenu.module.css' import { Moon, Sun } from '@components/icons' import { Menu, Transition } from '@headlessui/react' import useLogout from '@lib/bigcommerce/use-logout' +import { useRouter } from 'next/router' + interface DropdownMenuProps { open: boolean } @@ -20,7 +22,7 @@ const LINKS = [ href: '/profile', }, { - name: 'Cart', + name: 'My Cart', href: '/cart', }, ] @@ -28,6 +30,8 @@ const LINKS = [ const DropdownMenu: FC = ({ open = false }) => { const { theme, setTheme } = useTheme() const logout = useLogout() + const { pathname } = useRouter() + return ( = ({ open = false }) => { {LINKS.map(({ name, href }) => ( - {({ active }) => ( +
    - {name} + + {name} + - )} +
    ))} diff --git a/components/core/UserNav/UserNav.module.css b/components/core/UserNav/UserNav.module.css index 4f30f5fe4..8b8fa8c14 100644 --- a/components/core/UserNav/UserNav.module.css +++ b/components/core/UserNav/UserNav.module.css @@ -7,10 +7,10 @@ } .item { - @apply mr-6 cursor-pointer relative transition ease-in-out duration-100 text-primary flex items-center outline-none; + @apply mr-6 cursor-pointer relative transition ease-in-out duration-100 text-primary flex items-center outline-none text-primary; &:hover { - @apply text-accents-8 transition scale-110 duration-100; + @apply text-accents-6 transition scale-110 duration-100; } &:last-child { diff --git a/pages/cart.tsx b/pages/cart.tsx index 7fee8176d..62fd618b4 100644 --- a/pages/cart.tsx +++ b/pages/cart.tsx @@ -41,14 +41,14 @@ export default function Cart({}: InferGetStaticPropsType<
    {isEmpty ? ( -
    - +
    +

    Your cart is empty

    -

    +

    Biscuit oat cake wafer icing ice cream tiramisu pudding cupcake.

    diff --git a/pages/orders.tsx b/pages/orders.tsx index 87c74ac8e..37ba013a8 100644 --- a/pages/orders.tsx +++ b/pages/orders.tsx @@ -1,10 +1,21 @@ import { Layout } from '@components/core' import { Container, Text } from '@components/ui' - +import { Bag } from '@components/icons' export default function Orders() { return ( My Orders +
    + + + +

    + No orders found +

    +

    + Biscuit oat cake wafer icing ice cream tiramisu pudding cupcake. +

    +
    ) }