test(harness): add LanguageProvider to TestApp (hooks now use useTranslation)
This commit is contained in:
parent
97c90c506a
commit
4c0d7772f3
1 changed files with 5 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ import { NostrLoginProvider } from '@nostrify/react/login';
|
|||
import NostrProvider from '@/components/NostrProvider';
|
||||
import { AppProvider } from '@/components/AppProvider';
|
||||
import { NWCProvider } from '@/contexts/NWCContext';
|
||||
import { LanguageProvider } from '@/contexts/LanguageContext';
|
||||
import { AppConfig } from '@/contexts/AppContext';
|
||||
|
||||
interface TestAppProps {
|
||||
|
|
@ -37,7 +38,8 @@ export function TestApp({ children }: TestAppProps) {
|
|||
|
||||
return (
|
||||
<UnheadProvider head={head}>
|
||||
<AppProvider storageKey='test-app-config' defaultConfig={defaultConfig}>
|
||||
<LanguageProvider>
|
||||
<AppProvider storageKey='test-app-config' defaultConfig={defaultConfig}>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<NostrLoginProvider storageKey='test-login'>
|
||||
<NostrProvider>
|
||||
|
|
@ -49,7 +51,8 @@ export function TestApp({ children }: TestAppProps) {
|
|||
</NostrProvider>
|
||||
</NostrLoginProvider>
|
||||
</QueryClientProvider>
|
||||
</AppProvider>
|
||||
</AppProvider>
|
||||
</LanguageProvider>
|
||||
</UnheadProvider>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue