From 3066b81d8f38f799cc26ccb092cf9edcd2a8bea7 Mon Sep 17 00:00:00 2001 From: arvinxx Date: Fri, 17 Feb 2023 13:26:33 +0800 Subject: [PATCH] =?UTF-8?q?:label:=20fix:=20=E4=BF=AE=E6=AD=A3=20ThemeProv?= =?UTF-8?q?ider=20=E5=AD=90=E7=BB=84=E4=BB=B6=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../createThemeProvider/TokenContainer.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/factories/createThemeProvider/TokenContainer.tsx b/src/factories/createThemeProvider/TokenContainer.tsx index f9d45b00..dcae2bc7 100644 --- a/src/factories/createThemeProvider/TokenContainer.tsx +++ b/src/factories/createThemeProvider/TokenContainer.tsx @@ -4,12 +4,15 @@ import { serializeCSS } from '@/core'; import { useAntdTheme, useThemeMode } from '@/hooks'; import { Theme } from '@/types'; -import type { ThemeProviderProps } from './type'; +import type { StyledThemeProvider, ThemeProviderProps } from './type'; -type TokenContainerProps> = Pick< - ThemeProviderProps, - 'children' | 'customToken' | 'customStylish' | 'prefixCls' | 'StyledThemeProvider' ->; +interface TokenContainerProps> + extends Pick< + ThemeProviderProps, + 'children' | 'customToken' | 'customStylish' | 'prefixCls' + > { + StyledThemeProvider: StyledThemeProvider; +} const TokenContainer: (props: TokenContainerProps) => ReactElement | null = ({ children,