diff --git a/components/Navbar.tsx b/components/Navbar.tsx index e22bdbd..8bccce7 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -12,7 +12,7 @@ import { User, UserCache } from '@types' const DiscordAvatar = dynamic(() => import('@components/DiscordAvatar')) -const Navbar: React.FC = ({ token, pwa }) => { +const Navbar: React.FC = ({ token }) => { const [userCache, setUserCache] = useState() const [navbarOpen, setNavbarOpen] = useState(false) const [dropdownOpen, setDropdownOpen] = useState(false) @@ -128,8 +128,7 @@ const Navbar: React.FC = ({ token, pwa }) => { { localStorage.redirectTo = window.location.href setNavbarOpen(false) - if(pwa) window.open('/api/auth/discord', '_blank') - else redirectTo(router, 'login') + redirectTo(router, 'login') }} className='lg:hover:text-gray-300 flex items-center px-3 py-4 w-full hover:text-gray-500 text-gray-700 text-sm font-semibold sm:w-auto lg:py-2 lg:text-gray-100 cursor-pointer outline-none'> 로그인 @@ -201,8 +200,7 @@ const Navbar: React.FC = ({ token, pwa }) => { : { localStorage.redirectTo = window.location.href setNavbarOpen(false) - if(pwa) window.open('/api/auth/discord', '_blank') - else redirectTo(router, 'login') + redirectTo(router, 'login') }} className='flex items-center px-8 py-2 text-gray-100 hover:text-gray-300'> 로그인 @@ -216,7 +214,6 @@ const Navbar: React.FC = ({ token, pwa }) => { interface NavbarProps { token: string - pwa: boolean } export default Navbar diff --git a/pages/_app.tsx b/pages/_app.tsx index 9a884b2..738ddcf 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -125,7 +125,7 @@ const KoreanbotsApp = ({ Component, pageProps, err, cookie }: KoreanbotsProps): - +