diff options
author | August Skare <post@augustskare.no> | 2018-10-29 16:13:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 16:13:03 +0800 |
commit | 3d4041ecd3d9384853514ea0cebc445e630b106e (patch) | |
tree | 6c242f914a2a0e2547f107656558618750c82a06 /packages/dev-tools-pages/ts/components/Code.tsx | |
parent | 89e439c521aed35be72bee1094d8a431e5fc1d68 (diff) | |
download | dexon-sol-tools-3d4041ecd3d9384853514ea0cebc445e630b106e.tar dexon-sol-tools-3d4041ecd3d9384853514ea0cebc445e630b106e.tar.gz dexon-sol-tools-3d4041ecd3d9384853514ea0cebc445e630b106e.tar.bz2 dexon-sol-tools-3d4041ecd3d9384853514ea0cebc445e630b106e.tar.lz dexon-sol-tools-3d4041ecd3d9384853514ea0cebc445e630b106e.tar.xz dexon-sol-tools-3d4041ecd3d9384853514ea0cebc445e630b106e.tar.zst dexon-sol-tools-3d4041ecd3d9384853514ea0cebc445e630b106e.zip |
Feature/feedbacktweaks (#11)
* Fix typo
* Fix 1px line showing in middle of divs
* Increase inline code padding by 2px
* Make masonry block not full width on screens larger than mobile
* Align list items
* Change button text to copied if it's been copied
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Code.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Code.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/dev-tools-pages/ts/components/Code.tsx b/packages/dev-tools-pages/ts/components/Code.tsx index e9a503f0b..b883dcbf8 100644 --- a/packages/dev-tools-pages/ts/components/Code.tsx +++ b/packages/dev-tools-pages/ts/components/Code.tsx @@ -178,7 +178,7 @@ class Code extends React.Component<CodeProps, CodeState> { <CopyInput readOnly aria-hidden="true" ref={this.code} value={children} /> ) : null} </Base> - {navigator.userAgent !== 'ReactSnap' ? <Button onClick={this.handleCopy}>Copy</Button> : null} + {navigator.userAgent !== 'ReactSnap' ? <Button onClick={this.handleCopy}>{this.state.copied ? 'Copied' : 'Copy'}</Button> : null} </Container> ); } |