aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2019-01-18 03:59:39 +0800
committerFabio Berger <me@fabioberger.com>2019-01-18 03:59:39 +0800
commite1e531a2a48cdacd3d8e8b6427e3f0410699ea3d (patch)
treec09524e3801a5244b479f83da1e4323e6549f44e /packages/dev-tools-pages/ts
parentf6edf27856fa7c8e57bd11f371829263537b8ab1 (diff)
downloaddexon-0x-contracts-e1e531a2a48cdacd3d8e8b6427e3f0410699ea3d.tar.gz
dexon-0x-contracts-e1e531a2a48cdacd3d8e8b6427e3f0410699ea3d.tar.zst
dexon-0x-contracts-e1e531a2a48cdacd3d8e8b6427e3f0410699ea3d.zip
Remove react-snap from dev-tools-pages since it was messing up links on rendering pages
Diffstat (limited to 'packages/dev-tools-pages/ts')
-rw-r--r--packages/dev-tools-pages/ts/components/call_to_action.tsx2
-rw-r--r--packages/dev-tools-pages/ts/components/code.tsx2
-rw-r--r--packages/dev-tools-pages/ts/components/hero.tsx2
3 files changed, 3 insertions, 3 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 2a58d8fca..3805a7c8c 100644
--- a/packages/dev-tools-pages/ts/components/call_to_action.tsx
+++ b/packages/dev-tools-pages/ts/components/call_to_action.tsx
@@ -14,7 +14,7 @@ const CallToAction: React.StatelessComponent<ContextInterface> = ({ children })
Read the Docs
</Button>
</CallToActionContainer>
- {navigator.userAgent !== 'ReactSnap' ? children : null}
+ {children}
</StyledCallToAction>
)}
</ThemeContext.Consumer>
diff --git a/packages/dev-tools-pages/ts/components/code.tsx b/packages/dev-tools-pages/ts/components/code.tsx
index 461a91ba3..0f7d6a0cd 100644
--- a/packages/dev-tools-pages/ts/components/code.tsx
+++ b/packages/dev-tools-pages/ts/components/code.tsx
@@ -156,7 +156,7 @@ class Code extends React.Component<CodeProps, CodeState> {
<StyledCopyInput readOnly={true} aria-hidden="true" ref={this._code} value={children} />
) : null}
</Base>
- {navigator.userAgent !== 'ReactSnap' && canCopy ? (
+ {canCopy ? (
<Button onClick={this._handleCopyAsync.bind(this)}>{this.state.didCopy ? 'Copied' : 'Copy'}</Button>
) : null}
</Container>
diff --git a/packages/dev-tools-pages/ts/components/hero.tsx b/packages/dev-tools-pages/ts/components/hero.tsx
index a024a49dc..e2977f3f2 100644
--- a/packages/dev-tools-pages/ts/components/hero.tsx
+++ b/packages/dev-tools-pages/ts/components/hero.tsx
@@ -18,7 +18,7 @@ const Hero: React.StatelessComponent<ContextInterface> = ({ children }) => (
Read the Docs
</Button>
</HeroContainer>
- {navigator.userAgent !== 'ReactSnap' ? children : null}
+ {children}
</StyledHero>
)}
</ThemeContext.Consumer>