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 NostrProvider from '@/components/NostrProvider';
|
||||||
import { AppProvider } from '@/components/AppProvider';
|
import { AppProvider } from '@/components/AppProvider';
|
||||||
import { NWCProvider } from '@/contexts/NWCContext';
|
import { NWCProvider } from '@/contexts/NWCContext';
|
||||||
|
import { LanguageProvider } from '@/contexts/LanguageContext';
|
||||||
import { AppConfig } from '@/contexts/AppContext';
|
import { AppConfig } from '@/contexts/AppContext';
|
||||||
|
|
||||||
interface TestAppProps {
|
interface TestAppProps {
|
||||||
|
|
@ -37,6 +38,7 @@ export function TestApp({ children }: TestAppProps) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<UnheadProvider head={head}>
|
<UnheadProvider head={head}>
|
||||||
|
<LanguageProvider>
|
||||||
<AppProvider storageKey='test-app-config' defaultConfig={defaultConfig}>
|
<AppProvider storageKey='test-app-config' defaultConfig={defaultConfig}>
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
<NostrLoginProvider storageKey='test-login'>
|
<NostrLoginProvider storageKey='test-login'>
|
||||||
|
|
@ -50,6 +52,7 @@ export function TestApp({ children }: TestAppProps) {
|
||||||
</NostrLoginProvider>
|
</NostrLoginProvider>
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
</AppProvider>
|
</AppProvider>
|
||||||
|
</LanguageProvider>
|
||||||
</UnheadProvider>
|
</UnheadProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue