mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
docs: remove unnecessary type annotation in typography interactive demo (#31564)
Co-authored-by: Hale <hale@shundaojia.com>
This commit is contained in:
parent
a336100f54
commit
c092ea89a7
@ -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.');
|
||||
|
Loading…
Reference in New Issue
Block a user