this repo has no description
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: login on enter

Turtlepaw efff9d67 388546ff

+16
+16
src/nav/navbar.tsx
··· 159 159 <Input 160 160 value={handle} 161 161 onChange={(e) => setHandle(e.target.value)} 162 + onKeyDown={(e) => { 163 + if (e.key === "Enter" && handle && !isLoading) { 164 + setLoading(true); 165 + login(handle) 166 + .catch((e) => { 167 + setError( 168 + e instanceof Error 169 + ? e.message 170 + : "Unknown error occurred" 171 + ); 172 + }) 173 + .finally(() => { 174 + setLoading(false); 175 + }); 176 + } 177 + }} 162 178 placeholder="example.bsky.social" 163 179 className="dark:text-white text-black" 164 180 />