Skip to content

Commit

Permalink
fix server rendering issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeyy committed Sep 10, 2024
1 parent 424b1ed commit 7cbd6f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const donateLink = "https://streamlabs.com/wendilunar/tip";
class="transition-all ease-in-out hover:text-foreground">Donate</a
>
</div>
<CartButton client:load />
<CartSheet client:load />
<CartButton client:only="react" />
<CartSheet client:only="react" />
</div>
</nav>
10 changes: 7 additions & 3 deletions src/pages/product/[...handle].astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ if (!product) {
}
---

<Layout title={product?.title || "Hansumfella merch"} description={product?.description} ogImage={product?.featuredImage?.url}>
<Layout
title={product?.title || "Hansumfella merch"}
description={product?.description}
ogImage={product?.featuredImage?.url}
>
<div class="flex flex-col items-center justify-center px-4 sm:px-8">
<div class="flex w-full flex-1 flex-col items-start gap-4 md:w-[85%]">
<div class="mt-16 grid w-full grid-cols-1 gap-8 pb-8 sm:pb-0 md:grid-cols-2">
<ProductImages product={product} client:load />
<ProductDetailsCard product={product} client:load />
<ProductImages product={product} client:only="react" />
<ProductDetailsCard product={product} client:only="react" />
</div>
</div>
</div>
Expand Down

0 comments on commit 7cbd6f7

Please sign in to comment.