From 7a8da77d6919139a36de6386e4e03bdb272a4d1a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 18 Apr 2025 15:41:35 -0500 Subject: [PATCH] Update CONTEXT.md about new LoginArea --- CONTEXT.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTEXT.md b/CONTEXT.md index d90b6d1..03acefb 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -152,23 +152,23 @@ The `useCurrentUser` hook should be used to ensure that the user is logged in be ### Nostr Login -To enable login with Nostr, simply include the `AccountSwitcher` component already included in this project. +To enable login with Nostr, simply use the `LoginArea` component already included in this project. ```tsx -import { AccountSwitcher } from "@/components/auth/AccountSwitcher"; +import { LoginArea } from "@/components/auth/LoginArea"; function MyComponent() { return (
{/* other components ... */} - +
); } ``` -The `AccountSwitcher` component displays a "Log in" button when the user is logged out, and changes to an account switcher once the user is logged in. +The `LoginArea` component displays a "Log in" button when the user is logged out, and changes to an account switcher once the user is logged in. It handles all the login-related UI and interactions internally, including displaying login dialogs and switching between accounts. ## Development Practices