Skip to content

Commit

Permalink
Merge pull request #147 from thisdot/tdl-enhance-header-styles
Browse files Browse the repository at this point in the history
tdl: enhance header styles like in the remix project
  • Loading branch information
Megio authored Jul 25, 2023
2 parents 19b3f8c + 536f969 commit 48824d4
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 48824d4

Please sign in to comment.