feat: migrate note component to i18n

This commit is contained in:
2024-01-29 10:22:55 +07:00
parent b97676dd3e
commit 698bd78684
18 changed files with 125 additions and 47 deletions

View File

@@ -1,3 +1,4 @@
import { NDKUserProfile } from "@nostr-dev-kit/ndk";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { useArk } from "./useArk";
@@ -20,7 +21,7 @@ export function useProfile(pubkey: string) {
return profile;
},
initialData: () => {
return queryClient.getQueryData(["user", pubkey]);
return queryClient.getQueryData(["user", pubkey]) as NDKUserProfile;
},
refetchOnMount: false,
refetchOnWindowFocus: false,