Skip to content

Commit bf73d8e

Browse files
Merge pull request #141 from oracle/FixHydrationErrors
Fix hydration errors
2 parents dabf3d4 + 2c82af5 commit bf73d8e

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

templates/ords-remix-jwt-sample/app/components/concerts/ConcertCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function ConcertCard(props: ConcertCardProps) {
9595
</Link>
9696
<div className="flex items-center">
9797
<CalendarMonth />
98-
<p className="font-sans font-extralight">
98+
<p className="font-sans font-extralight" suppressHydrationWarning>
9999
{ concertDateString }
100100
</p>
101101
</div>

templates/ords-remix-jwt-sample/app/components/concerts/ConcertDetails.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function ConcertDetails(props: ConcertDetailsProps) {
5050
<h1 className="mb-5 text-justify text-xl font-bold">
5151
Additional Details
5252
</h1>
53-
<p className="mb-2 text-justify font-normal">
53+
<p className="mb-2 text-justify font-normal" suppressHydrationWarning>
5454
{`Get ready for an unforgettable evening with ${concert.items[0].artist_name}!
5555
Join us at ${concert.items[0].venue_name} on ${concertDateString} for a night of incredible
5656
music and electrifying performances.

templates/ords-remix-jwt-sample/app/components/homepage/ConcertCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function ConcertCard(props: ConcertCardProps) {
5959
</div>
6060
<div className="flex items-center">
6161
<CalendarMonth />
62-
<p className="font-sans font-extralight">
62+
<p className="font-sans font-extralight" suppressHydrationWarning>
6363
{ concertDateString }
6464
</p>
6565
</div>

templates/ords-remix-jwt-sample/app/components/homepage/Timeline.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ function Timeline(props: TimelineProps) {
128128
},
129129
}}
130130
>
131-
<StyledTab className="w-1/3" label={today.toDateString()} {...a11yProps(0)} />
132-
<StyledTab className="w-1/3" label={tomorrow.toDateString()} {...a11yProps(1)} />
133-
<StyledTab className="w-1/3" label={dayAfterTomorrow.toDateString()} {...a11yProps(LAST_TAB)} />
131+
<StyledTab className="w-1/3" label={today.toDateString()} {...a11yProps(0)} suppressHydrationWarning />
132+
<StyledTab className="w-1/3" label={tomorrow.toDateString()} {...a11yProps(1)} suppressHydrationWarning />
133+
<StyledTab className="w-1/3" label={dayAfterTomorrow.toDateString()} {...a11yProps(LAST_TAB)} suppressHydrationWarning />
134134
</Tabs>
135135
</div>
136136
</Box>

templates/ords-remix-jwt-sample/app/components/private/FollowedEventCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function FollowedEventCard(props: FollowedEventCardProps) {
3838
<div className="mx-4">
3939
<div className="mb-2 flex items-center">
4040
<CalendarMonth />
41-
<p className="font-sans font-extralight">
41+
<p className="font-sans font-extralight" suppressHydrationWarning >
4242
{ concertDateString }
4343
</p>
4444
</div>

templates/ords-remix-jwt-sample/app/components/search/ConcertResultCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function ConcertResultCard(props: ConcertResultCardProps) {
4949
</h1>
5050
<div className="flex items-center">
5151
<CalendarMonth />
52-
<p className="font-sans font-extralight">
52+
<p className="font-sans font-extralight" suppressHydrationWarning>
5353
{ concertDateString }
5454
</p>
5555
</div>

0 commit comments

Comments
 (0)