mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-02 05:46:55 +08:00
Fix(site): fix icon copy text
This commit is contained in:
parent
9523ade542
commit
aa16f6c398
@ -120,7 +120,7 @@ const CopyableIcon = React.createClass({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
const text = '<Icon type="' + this.props.type + '" />';
|
const text = '<Icon type="' + this.props.type + '" />';
|
||||||
return (
|
return (
|
||||||
<CopyToClipboard text={text} onCopy={this.onCopied}>
|
<CopyToClipboard text={text} onCopy={this.onCopied}>
|
||||||
<li className={this.state.justCopied ? 'copied' : ''}>
|
<li className={this.state.justCopied ? 'copied' : ''}>
|
||||||
|
Loading…
Reference in New Issue
Block a user