From f566e3b24bca0a1f73e4ff5c83f5302eadb32c37 Mon Sep 17 00:00:00 2001 From: thinkasany <117748716+thinkasany@users.noreply.github.com> Date: Thu, 6 Jul 2023 23:54:03 +0800 Subject: [PATCH 1/9] type: supplementary React.FC type (#43410) * type: supplementary React.FC type * fix: remove useless code * revert: remove useStyle * revert: card-top * Update card-top.tsx --- components/button/demo/chinese-chars-loading.tsx | 4 ++-- components/color-picker/__tests__/index.test.tsx | 2 +- components/form/__tests__/index.test.tsx | 4 ++-- components/form/demo/validate-only.tsx | 2 +- .../image/demo/preview-group-top-progress.tsx | 4 ++-- components/input/__tests__/index.test.tsx | 2 +- components/input/__tests__/textarea.test.tsx | 2 +- components/table/__tests__/Table.filter.test.tsx | 2 +- components/tag/demo/draggable.tsx | 14 +++++++------- components/transfer/__tests__/index.test.tsx | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/components/button/demo/chinese-chars-loading.tsx b/components/button/demo/chinese-chars-loading.tsx index 8ddfea9a47..991e922c4a 100644 --- a/components/button/demo/chinese-chars-loading.tsx +++ b/components/button/demo/chinese-chars-loading.tsx @@ -1,13 +1,13 @@ // @ts-nocheck -import React from 'react'; import { PoweroffOutlined } from '@ant-design/icons'; import { Button, Space } from 'antd'; +import React from 'react'; const Text1 = () => '部署'; const Text2 = () => 部署; const Text3 = () => 'Submit'; -const App = () => ( +const App: React.FC = () => (