Skip to content

Commit 2652671

Browse files
committed
Fix react-wrap-balancer import breaking React DOM
1 parent c51d274 commit 2652671

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/content/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const blogCollection = defineCollection({
1212
// I am truly lost on how TZ works in Javascript Dates.
1313
// I believe somehow the solution would lie here in making sure that the date offset is parsed and transmitted properly,
1414
// but there is no insight in how this works so far. I'm lost as fuck.
15-
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
15+
16+
// const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
1617
const parsed = parse(date, "yyyy-MM-dd HH:mm:ss XX", new Date());
1718
// const utc = zonedTimeToUtc(parsed, timezone);
1819
return z.date().parse(parsed);

src/layouts/Post.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import General from "@layouts/General.astro";
33
import Time from "@components/Time.tsx";
44
import { type CollectionEntry } from "astro:content";
55
import type { Props as SEOProps } from "astro-seo";
6-
import Balancer from "react-wrap-balancer";
6+
import { Balancer } from "react-wrap-balancer";
77
88
interface Props {
99
post: CollectionEntry<"blog">;
@@ -83,8 +83,7 @@ const ogp: SEOProps = {
8383
<div>
8484
<h1 class="max-md:text-lg max-sm:text-center max-sm:border-b border-zinc-700">
8585
<a href={post.slug}>
86-
{title}
87-
<!-- <Balancer>{title}</Balancer> -->
86+
<Balancer>{title}</Balancer>
8887
</a>
8988
</h1>
9089
<p class="mt-0 text-sm ml-5">

0 commit comments

Comments
 (0)