Skip to content

Commit

Permalink
Merge pull request #13 from omnisat/hath69
Browse files Browse the repository at this point in the history
fix hydration errors temporarily
  • Loading branch information
0xBunzy authored Nov 17, 2024
2 parents 7f564f7 + 271d729 commit 3989664
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/next-app/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
import { useLaserEyes, LaserEyesLogo } from "@omnisat/lasereyes";
import ConnectWallet from "@/components/ConnectWallet";
import { ThemeToggle } from "@/components/ThemeToggle";
import { useState, useEffect } from "react";

export default function Home() {
const { address } = useLaserEyes();

const [isMounted, setIsMounted] = useState<boolean>(false)

useEffect(() => {
setIsMounted(true)
}, [])

if (!isMounted) return null

return (
<div className="min-h-screen flex flex-col items-center justify-center gap-12 p-8 bg-gradient-to-br from-red-50 via-orange-50 to-yellow-50 dark:from-gray-900 dark:to-black text-black dark:text-white">
<div className="absolute top-4 right-4">
Expand Down

0 comments on commit 3989664

Please sign in to comment.