优化
This commit is contained in:
12
client/shared/components/Provider.tsx
Normal file
12
client/shared/components/Provider.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import React, { PropsWithChildren } from 'react';
|
||||
import { CacheProvider } from '../cache/Provider';
|
||||
import { ColorSchemeContextProvider } from '../contexts/ColorSchemeContext';
|
||||
|
||||
export const TcProvider: React.FC<PropsWithChildren> = React.memo((props) => {
|
||||
return (
|
||||
<CacheProvider>
|
||||
<ColorSchemeContextProvider>{props.children}</ColorSchemeContextProvider>
|
||||
</CacheProvider>
|
||||
);
|
||||
});
|
||||
TcProvider.displayName = 'TcProvider';
|
||||
Reference in New Issue
Block a user