update splash screen

This commit is contained in:
Ren Amamiya
2023-08-11 11:55:31 +07:00
parent f2fc41018d
commit 0cfc3a48d8
7 changed files with 244 additions and 91 deletions

View File

@@ -20,18 +20,17 @@ const NDKContext = createContext<NDKContext>({
const NDKProvider = ({ children }: PropsWithChildren<object>) => {
const { ndk, relayUrls, fetcher } = NDKInstance();
if (ndk)
return (
<NDKContext.Provider
value={{
ndk,
relayUrls,
fetcher,
}}
>
{children}
</NDKContext.Provider>
);
return (
<NDKContext.Provider
value={{
ndk,
relayUrls,
fetcher,
}}
>
{children}
</NDKContext.Provider>
);
};
const useNDK = () => {