copied the code from the working repo
This commit is contained in:
14
mtucijobsweb/fsd/app/providers/ClientProvider.tsx
Normal file
14
mtucijobsweb/fsd/app/providers/ClientProvider.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
'use client';
|
||||
|
||||
import { PropsWithChildren } from 'react';
|
||||
import { QueryClient, QueryClientProvider } from 'react-query';
|
||||
|
||||
const ClientProvider = ({ children }: PropsWithChildren) => {
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default ClientProvider;
|
||||
13
mtucijobsweb/fsd/app/providers/TmaSDKLoader.tsx
Normal file
13
mtucijobsweb/fsd/app/providers/TmaSDKLoader.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
'use client';
|
||||
|
||||
import type { PropsWithChildren } from 'react';
|
||||
import { SDKProvider } from '@tma.js/sdk-react';
|
||||
|
||||
|
||||
export function TmaSDKLoader({ children }: PropsWithChildren) {
|
||||
return (
|
||||
<SDKProvider acceptCustomStyles debug>
|
||||
{children}
|
||||
</SDKProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user