From c092ea89a760dd437ae9f48f4ce95513ec86c57c Mon Sep 17 00:00:00 2001 From: Hale Deng Date: Wed, 28 Jul 2021 16:57:03 +0800 Subject: [PATCH] docs: remove unnecessary type annotation in typography interactive demo (#31564) Co-authored-by: Hale --- components/typography/demo/interactive.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/typography/demo/interactive.md b/components/typography/demo/interactive.md index 340725f7c4..09d4f6f176 100644 --- a/components/typography/demo/interactive.md +++ b/components/typography/demo/interactive.md @@ -20,7 +20,7 @@ import { HighlightOutlined, SmileOutlined, SmileFilled } from '@ant-design/icons const { Paragraph } = Typography; -const Demo: React.FC = () => { +const Demo = () => { const [editableStr, setEditableStr] = useState('This is an editable text.'); const [customIconStr, setCustomIconStr] = useState('Custom Edit icon and replace tooltip text.'); const [hideTooltipStr, setHideTooltipStr] = useState('Hide Edit tooltip.');