From c49085b0f24bb0980ccfd5135abecaf0df75f7e1 Mon Sep 17 00:00:00 2001 From: soyoka <55011525+soy0ka@users.noreply.github.com> Date: Fri, 18 Apr 2025 16:32:53 +0900 Subject: [PATCH 1/2] fix: prevent navbar from scrolling with page --- components/Navbar.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/Navbar.tsx b/components/Navbar.tsx index a8c0431..9a10678 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,14 +1,14 @@ /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/no-noninteractive-tabindex */ /* eslint-disable jsx-a11y/no-static-element-interactions */ -import { useEffect, useState } from 'react' -import Link from 'next/link' import dynamic from 'next/dynamic' +import Link from 'next/link' import { useRouter } from 'next/router' +import { useEffect, useState } from 'react' -import { redirectTo } from '@utils/Tools' -import Fetch from '@utils/Fetch' import { Nullable, User, UserCache } from '@types' +import Fetch from '@utils/Fetch' +import { redirectTo } from '@utils/Tools' const DiscordAvatar = dynamic(() => import('@components/DiscordAvatar')) @@ -51,7 +51,7 @@ const Navbar: React.FC = ({ token }) => { }, [token]) return ( <> -