Skip to content

Commit

Permalink
chore: Fix syntax errors and formatting in root-skip-nav-content.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
fluid-design-io committed Jun 24, 2024
1 parent 8f3658f commit ed6eb21
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions apps/web/app/root-skip-nav-content.tsx
Original file line number Diff line number Diff line change
@@ -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(
<div className="skip-main-wrap">
<div className="skip-main flex flex-col gap-1">
Expand All @@ -19,7 +19,7 @@ const RootSkipNavContent = () => {
<a className="skip-btn" href="#analogous-palette">
Analogous Palettes
</a>
<a className="skip-btn" href="#analogous-palette">
<a className="skip-btn" href="#monochromatic-palette">
Monochromatic Palettes
</a>
<div className="flex flex-col gap-1">
Expand All @@ -40,8 +40,8 @@ const RootSkipNavContent = () => {
</div>
</div>,
// #skip-nav
document.getElementById("skip-nav")!,
);
};
document.getElementById('skip-nav')!
)
}

export default RootSkipNavContent;
export default RootSkipNavContent

0 comments on commit ed6eb21

Please sign in to comment.