From 2041d332fd0c59cb46caa917c2cd5b3779169893 Mon Sep 17 00:00:00 2001 From: wjq990112 <1163585385@qq.com> Date: Mon, 29 May 2023 11:59:45 +0800 Subject: [PATCH] chore: change ThemeProvider's children to non-required --- src/factories/createThemeProvider/type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factories/createThemeProvider/type.ts b/src/factories/createThemeProvider/type.ts index 4504a867..22d5b129 100644 --- a/src/factories/createThemeProvider/type.ts +++ b/src/factories/createThemeProvider/type.ts @@ -13,7 +13,7 @@ import { NotificationConfig, NotificationInstance } from 'antd/es/notification/i import { ReactNode } from 'react'; export interface ThemeProviderProps> { - children: ReactNode; + children?: ReactNode; // --------------------- 自定义主题 --------------------- // /** * 自定义 Token