feat(web): wire @bytelyst/ui ToastProvider into app providers
This commit is contained in:
parent
075e1850e5
commit
947c93d10b
@ -6,6 +6,7 @@ import { AuthProvider } from '@/lib/auth-context';
|
|||||||
import { initTelemetry, trackPageView } from '@/lib/telemetry';
|
import { initTelemetry, trackPageView } from '@/lib/telemetry';
|
||||||
import { initFeatureFlags } from '@/lib/feature-flags';
|
import { initFeatureFlags } from '@/lib/feature-flags';
|
||||||
import { initDiagnostics } from '@/lib/diagnostics';
|
import { initDiagnostics } from '@/lib/diagnostics';
|
||||||
|
import { ToastProvider } from '@bytelyst/ui';
|
||||||
import type { ReactNode } from 'react';
|
import type { ReactNode } from 'react';
|
||||||
|
|
||||||
export function Providers({ children }: { children: ReactNode }) {
|
export function Providers({ children }: { children: ReactNode }) {
|
||||||
@ -23,5 +24,9 @@ export function Providers({ children }: { children: ReactNode }) {
|
|||||||
}
|
}
|
||||||
}, [pathname]);
|
}, [pathname]);
|
||||||
|
|
||||||
return <AuthProvider>{children}</AuthProvider>;
|
return (
|
||||||
|
<AuthProvider>
|
||||||
|
<ToastProvider>{children}</ToastProvider>
|
||||||
|
</AuthProvider>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user