Skip to content

Commit

Permalink
enhance header styles like in the remix project
Browse files Browse the repository at this point in the history
  • Loading branch information
Megio committed Jul 25, 2023
1 parent 44d12a9 commit 536f969
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/compoents/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Drawer } from '@/components/Drawer';
import { ShopifyHeaderMenu } from '@/lib/shopify/types';
import { Cart } from '@/components/Cart';
import useAppStore from '@/store/app-store';
import { usePathname } from 'next/navigation';

function Header({
menu,
Expand All @@ -16,7 +17,8 @@ function Header({
title: string;
isUser: boolean;
}) {
const isHome = true;
const pathname = usePathname();
const isHome = pathname === '/';

return (
<>
Expand Down

0 comments on commit 536f969

Please sign in to comment.