From ed6eb2172e64b0e30820953fff82bfb7e3a8205d Mon Sep 17 00:00:00 2001 From: Oliver Pan <2216991777@qq.com> Date: Mon, 24 Jun 2024 00:24:10 -0500 Subject: [PATCH] chore: Fix syntax errors and formatting in root-skip-nav-content.tsx --- apps/web/app/root-skip-nav-content.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/web/app/root-skip-nav-content.tsx b/apps/web/app/root-skip-nav-content.tsx index 0f1b1a4..2201abd 100644 --- a/apps/web/app/root-skip-nav-content.tsx +++ b/apps/web/app/root-skip-nav-content.tsx @@ -1,14 +1,14 @@ -"use client"; +'use client' -import { useEffect, useState } from "react"; -import { createPortal } from "react-dom"; +import { useEffect, useState } from 'react' +import { createPortal } from 'react-dom' const RootSkipNavContent = () => { - const [mounted, setMounted] = useState(false); + const [mounted, setMounted] = useState(false) useEffect(() => { - setMounted(true); - }, []); - if (!mounted) return null; + setMounted(true) + }, []) + if (!mounted) return null return createPortal(
@@ -19,7 +19,7 @@ const RootSkipNavContent = () => { Analogous Palettes - + Monochromatic Palettes
@@ -40,8 +40,8 @@ const RootSkipNavContent = () => {
, // #skip-nav - document.getElementById("skip-nav")!, - ); -}; + document.getElementById('skip-nav')! + ) +} -export default RootSkipNavContent; +export default RootSkipNavContent