mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
Refactor AppProvider, AppConfig and presetRelays
This commit is contained in:
8 files changed
+46
-26
No files matched your search
@@ -2,7 +2,7 @@ import React, { useEffect, useRef } from 'react';
|
||||
import { NostrEvent, NPool, NRelay1 } from '@nostrify/nostrify';
|
||||
import { NostrContext } from '@nostrify/react';
|
||||
import { useQueryClient } from '@tanstack/react-query';
|
||||
import { useAppConfig } from '@/hooks/useAppConfig';
|
||||
import { useAppContext } from '@/hooks/useAppContext';
|
||||
|
||||
interface NostrProviderProps {
|
||||
children: React.ReactNode;
|
||||
@@ -10,7 +10,7 @@ interface NostrProviderProps {
|
||||
|
||||
const NostrProvider: React.FC<NostrProviderProps> = (props) => {
|
||||
const { children } = props;
|
||||
const { config } = useAppConfig();
|
||||
const { config } = useAppContext();
|
||||
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
|
||||
Reference in new issue
Block a user