docs: remove unnecessary type annotation in typography interactive demo (#31564)

Co-authored-by: Hale <hale@shundaojia.com>
This commit is contained in:
Hale Deng 2021-07-28 16:57:03 +08:00 committed by GitHub
parent a336100f54
commit c092ea89a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ import { HighlightOutlined, SmileOutlined, SmileFilled } from '@ant-design/icons
const { Paragraph } = Typography; const { Paragraph } = Typography;
const Demo: React.FC = () => { const Demo = () => {
const [editableStr, setEditableStr] = useState('This is an editable text.'); const [editableStr, setEditableStr] = useState('This is an editable text.');
const [customIconStr, setCustomIconStr] = useState('Custom Edit icon and replace tooltip text.'); const [customIconStr, setCustomIconStr] = useState('Custom Edit icon and replace tooltip text.');
const [hideTooltipStr, setHideTooltipStr] = useState('Hide Edit tooltip.'); const [hideTooltipStr, setHideTooltipStr] = useState('Hide Edit tooltip.');