mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Add loading skeleton to NostrSettings page
This commit is contained in:
4 files changed
+37
-9
No files matched your search
@@ -14,7 +14,7 @@ export function useLoggedInAccounts() {
|
||||
const { nostr } = useNostr();
|
||||
const { logins, setLogin, removeLogin } = useNostrLogin();
|
||||
|
||||
const { data: authors = [] } = useQuery({
|
||||
const { data: authors = [], isLoading } = useQuery({
|
||||
queryKey: ['logins', logins.map((l) => l.id).join(';')],
|
||||
queryFn: async ({ signal }) => {
|
||||
const events = await nostr.query(
|
||||
@@ -52,5 +52,6 @@ export function useLoggedInAccounts() {
|
||||
otherUsers,
|
||||
setLogin,
|
||||
removeLogin,
|
||||
isLoading,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user