mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
NoteContent can linkify any kind, add TestApp component and "Testing Your Changes" to CONTEXT.md
This commit is contained in:
4 files changed
+158
-16
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
import { NostrLoginProvider } from '@nostrify/react/login';
|
||||
import NostrProvider from '@/components/NostrProvider';
|
||||
|
||||
interface TestAppProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export function TestApp({ children }: TestAppProps) {
|
||||
const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: { retry: false },
|
||||
mutations: { retry: false },
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<NostrLoginProvider storageKey='test-login'>
|
||||
<NostrProvider relays={['wss://relay.example.com']}>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
{children}
|
||||
</QueryClientProvider>
|
||||
</NostrProvider>
|
||||
</NostrLoginProvider>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
|
||||
export default TestApp;
|
||||
Reference in new issue
Block a user