Remove react-snap from dev-tools-pages since it was messing up links on rendering pages
This commit is contained in:
@@ -14,7 +14,7 @@ const CallToAction: React.StatelessComponent<ContextInterface> = ({ children })
|
||||
Read the Docs
|
||||
</Button>
|
||||
</CallToActionContainer>
|
||||
{navigator.userAgent !== 'ReactSnap' ? children : null}
|
||||
{children}
|
||||
</StyledCallToAction>
|
||||
)}
|
||||
</ThemeContext.Consumer>
|
||||
|
@@ -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>
|
||||
|
@@ -18,7 +18,7 @@ const Hero: React.StatelessComponent<ContextInterface> = ({ children }) => (
|
||||
Read the Docs
|
||||
</Button>
|
||||
</HeroContainer>
|
||||
{navigator.userAgent !== 'ReactSnap' ? children : null}
|
||||
{children}
|
||||
</StyledHero>
|
||||
)}
|
||||
</ThemeContext.Consumer>
|
||||
|
Reference in New Issue
Block a user