From 532cdaed8efc0bb855fa4f413b7a234b01e1215d Mon Sep 17 00:00:00 2001 From: enes Date: Mon, 7 Oct 2024 15:36:29 +0200 Subject: [PATCH] refactor(auth): open nostr-login directly --- src/components/AppBar/AppBar.tsx | 4 +++- src/pages/landing/index.tsx | 7 +++---- src/routes/index.tsx | 28 +--------------------------- 3 files changed, 7 insertions(+), 32 deletions(-) diff --git a/src/components/AppBar/AppBar.tsx b/src/components/AppBar/AppBar.tsx index 084a8f0..39e23b7 100644 --- a/src/components/AppBar/AppBar.tsx +++ b/src/components/AppBar/AppBar.tsx @@ -28,6 +28,8 @@ import { faClose } from '@fortawesome/free-solid-svg-icons' import useMediaQuery from '@mui/material/useMediaQuery' import { useLogout } from '../../hooks/useLogout' +import { launch as launchNostrLoginDialog } from 'nostr-login' + export const AppBar = () => { const navigate = useNavigate() const logout = useLogout() @@ -128,7 +130,7 @@ export const AppBar = () => {