refactor: clean code and remove unnecessary dependencies
This commit is contained in:
1 parent
eceae6fec7
commit
ebf599eed6
92 files changed
+1152
-2842
No files matched your search
+9
-3
@@ -1,13 +1,19 @@
|
||||
'use client';
|
||||
|
||||
import { ReactNode, useState } from 'react';
|
||||
import { FC, ReactNode, useState } from 'react';
|
||||
import ModalContainer from 'react-modal-promise';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
|
||||
import { queryClientOptions } from '@/lib/queryClient';
|
||||
import ThemeProvider from '@/providers/Theme';
|
||||
|
||||
const Providers = ({ children, theme }: { children: ReactNode; theme?: Theme }) => {
|
||||
import ThemeProvider from './Theme';
|
||||
|
||||
interface Props {
|
||||
children: ReactNode;
|
||||
theme?: Theme;
|
||||
}
|
||||
|
||||
const Providers: FC<Props> = ({ children, theme }) => {
|
||||
const [queryClient] = useState(() => new QueryClient(queryClientOptions));
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user