aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2019-01-17 23:24:03 +0800
committerFabio Berger <me@fabioberger.com>2019-01-17 23:24:03 +0800
commite68c5d5517ce82c771a68fb1852dceb9f05150ea (patch)
treee3b01ae1265a0fcd0a780443849dcfbd5a6e1a98 /packages/dev-tools-pages/ts/components
parent293e93729176b06f7e3cf78c798f48ddf360e311 (diff)
downloaddexon-sol-tools-e68c5d5517ce82c771a68fb1852dceb9f05150ea.tar
dexon-sol-tools-e68c5d5517ce82c771a68fb1852dceb9f05150ea.tar.gz
dexon-sol-tools-e68c5d5517ce82c771a68fb1852dceb9f05150ea.tar.bz2
dexon-sol-tools-e68c5d5517ce82c771a68fb1852dceb9f05150ea.tar.lz
dexon-sol-tools-e68c5d5517ce82c771a68fb1852dceb9f05150ea.tar.xz
dexon-sol-tools-e68c5d5517ce82c771a68fb1852dceb9f05150ea.tar.zst
dexon-sol-tools-e68c5d5517ce82c771a68fb1852dceb9f05150ea.zip
Enable "copy" button on all code snippets that should be copy-able
Diffstat (limited to 'packages/dev-tools-pages/ts/components')
-rw-r--r--packages/dev-tools-pages/ts/components/call_to_action.tsx2
-rw-r--r--packages/dev-tools-pages/ts/components/code.tsx1
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/dev-tools-pages/ts/components/call_to_action.tsx b/packages/dev-tools-pages/ts/components/call_to_action.tsx
index abb92b9d3..bd255cfe1 100644
--- a/packages/dev-tools-pages/ts/components/call_to_action.tsx
+++ b/packages/dev-tools-pages/ts/components/call_to_action.tsx
@@ -9,7 +9,7 @@ import { Beta } from './typography';
const CallToAction: React.StatelessComponent<ContextInterface> = ({ children }) => (
<ThemeContext.Consumer>
- {({ subtitle, tagline, docLink }: ContextInterface) => (
+ {({ docLink }: ContextInterface) => (
<StyledCallToAction>
<CallToActionContainer>
<Button as="a" href={docLink} target="_blank" large={true}>
diff --git a/packages/dev-tools-pages/ts/components/code.tsx b/packages/dev-tools-pages/ts/components/code.tsx
index c4f9cee24..461a91ba3 100644
--- a/packages/dev-tools-pages/ts/components/code.tsx
+++ b/packages/dev-tools-pages/ts/components/code.tsx
@@ -139,7 +139,6 @@ class Code extends React.Component<CodeProps, CodeState> {
public render(): React.ReactNode {
const { language, isLight, isDiff, children, gutterLength, canCopy } = this.props;
const { hlCode } = this.state;
-
return (
<Container>
<Base language={language} isDiff={isDiff} isLight={isLight}>