From 8b1f79c1f5c06204dccaf0c7a8d3f4f0dc0b72f3 Mon Sep 17 00:00:00 2001
From: lijianan <574980606@qq.com>
Date: Mon, 6 May 2024 12:04:27 +0800
Subject: [PATCH] demo: update demo type `{ children: React.ReactNode }` =>
`React.PropsWithChildren` (#48771)
* demo: update demo type React.ReactNode => React.PropsWithChildren
* fix: fix
---
components/button/__tests__/index.test.tsx | 2 +-
components/form/demo/form-item-path.tsx | 6 ++++--
components/grid/demo/flex-align.tsx | 2 +-
components/table/demo/edit-cell.tsx | 3 +--
components/table/demo/edit-row.tsx | 3 +--
components/tooltip/demo/disabled-children.tsx | 2 +-
docs/blog/config-provider-style.en-US.md | 4 ++--
tests/__mocks__/rc-util/lib/Portal.tsx | 8 ++------
8 files changed, 13 insertions(+), 17 deletions(-)
diff --git a/components/button/__tests__/index.test.tsx b/components/button/__tests__/index.test.tsx
index eddfd263af..892bd355fc 100644
--- a/components/button/__tests__/index.test.tsx
+++ b/components/button/__tests__/index.test.tsx
@@ -88,7 +88,7 @@ describe('Button', () => {
});
it('renders Chinese characters correctly in HOC', () => {
- const Text = ({ children }: { children: React.ReactNode }) => {children};
+ const Text: React.FC = ({ children }) => {children};
const { container, rerender } = render(