Remove react-snap from dev-tools-pages since it was messing up links on rendering pages

This commit is contained in:
Fabio Berger
2019-01-17 20:59:39 +01:00
parent f6edf27856
commit e1e531a2a4
4 changed files with 4 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ const CallToAction: React.StatelessComponent<ContextInterface> = ({ children })
Read the Docs
</Button>
</CallToActionContainer>
{navigator.userAgent !== 'ReactSnap' ? children : null}
{children}
</StyledCallToAction>
)}
</ThemeContext.Consumer>

View File

@@ -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>

View File

@@ -18,7 +18,7 @@ const Hero: React.StatelessComponent<ContextInterface> = ({ children }) => (
Read the Docs
</Button>
</HeroContainer>
{navigator.userAgent !== 'ReactSnap' ? children : null}
{children}
</StyledHero>
)}
</ThemeContext.Consumer>