Commit bbaba877 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

doc: fix copy error

parent 67b0dcd9
...@@ -19,7 +19,7 @@ const BlockCodeView: React.SFC<{ ...@@ -19,7 +19,7 @@ const BlockCodeView: React.SFC<{
const blockUrl = `npx umi block add ${firstUpperCase(url)} --path=${url}`; const blockUrl = `npx umi block add ${firstUpperCase(url)} --path=${url}`;
return ( return (
<div className={styles['copy-block-view']}> <div className={styles['copy-block-view']}>
<Typography.Paragraph copyable> <Typography.Paragraph copyable={{ text: blockUrl }}>
<code className={styles['copy-block-code']}>{blockUrl}</code> <code className={styles['copy-block-code']}>{blockUrl}</code>
</Typography.Paragraph> </Typography.Paragraph>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment