Trying to fix warning

This commit is contained in:
KMKoushik
2024-06-03 19:49:17 +10:00
parent ae7ebb6a34
commit 544b5c1a49
2 changed files with 10 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<html lang="en">
{process.env.NODE_ENV === "production" && (
<Script src="https://scripts.simpleanalyticscdn.com/latest.js" />
)}

View File

@@ -1,8 +1,4 @@
import {
RocketLaunchIcon,
EnvelopeIcon,
MegaphoneIcon,
} from "@heroicons/react/24/solid";
import { EnvelopeIcon, MegaphoneIcon } from "@heroicons/react/24/solid";
import {
Heading1,
Heading2,
@@ -17,7 +13,6 @@ import {
import { formatDate } from "date-fns";
import { TextWithCopyButton } from "@unsend/ui/src/text-with-copy";
import Link from "next/link";
import Image from "next/image";
import IntegrationCode from "./IntegrationCode";
import {
GithubStarButton,
@@ -126,7 +121,10 @@ export default function Home() {
Sent
</div>
</div>
<div className="text-xs text-muted-foreground mt-2">
<div
className="text-xs text-muted-foreground mt-2"
suppressHydrationWarning
>
{formatDate(Date.now() - 100000, "MMM dd, hh:mm a")}
</div>
<div className="mt-1 text-primary/80">
@@ -155,7 +153,10 @@ export default function Home() {
Delivered
</div>
</div>
<div className="text-xs text-muted-foreground mt-2">
<div
className="text-xs text-muted-foreground mt-2"
suppressHydrationWarning
>
{formatDate(new Date(), "MMM dd, hh:mm a")}
</div>
<div className="mt-1 text-primary/80">