mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
- Replace @hey-api/openapi-ts with openapi-typescript and openapi-react-query - Generate TypeScript types from OpenAPI spec - Set up React Query infrastructure with QueryClientProvider - Migrate all API hooks to use React Query patterns - Maintain backward compatibility for existing components - Remove old API infrastructure and dependencies
29 lines
884 B
TypeScript
29 lines
884 B
TypeScript
"use client";
|
|
|
|
import { ChakraProvider } from "@chakra-ui/react";
|
|
import system from "./styles/theme";
|
|
|
|
import { WherebyProvider } from "@whereby.com/browser-sdk/react";
|
|
import { Toaster } from "./components/ui/toaster";
|
|
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
import { queryClient } from "./lib/queryClient";
|
|
import { ApiAuthProvider } from "./lib/ApiAuthProvider";
|
|
|
|
export function Providers({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<NuqsAdapter>
|
|
<QueryClientProvider client={queryClient}>
|
|
<ApiAuthProvider>
|
|
<ChakraProvider value={system}>
|
|
<WherebyProvider>
|
|
{children}
|
|
<Toaster />
|
|
</WherebyProvider>
|
|
</ChakraProvider>
|
|
</ApiAuthProvider>
|
|
</QueryClientProvider>
|
|
</NuqsAdapter>
|
|
);
|
|
}
|