Remove react-snap from dev-tools-pages since it was messing up links on rendering pages
This commit is contained in:
parent
f6edf27856
commit
e1e531a2a4
@ -7,7 +7,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"description": "0x Dev tools pages",
|
"description": "0x Dev tools pages",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production && react-snap",
|
"build": "node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
|
||||||
"build:ci": "yarn build",
|
"build:ci": "yarn build",
|
||||||
"build:dev": "../../node_modules/.bin/webpack --mode development",
|
"build:dev": "../../node_modules/.bin/webpack --mode development",
|
||||||
"clean": "shx rm -f public/bundle*",
|
"clean": "shx rm -f public/bundle*",
|
||||||
@ -61,7 +61,6 @@
|
|||||||
"less-loader": "^4.1.0",
|
"less-loader": "^4.1.0",
|
||||||
"make-promises-safe": "^1.1.0",
|
"make-promises-safe": "^1.1.0",
|
||||||
"raw-loader": "^0.5.1",
|
"raw-loader": "^0.5.1",
|
||||||
"react-snap": "^1.19.0",
|
|
||||||
"react-svg-loader": "^2.1.0",
|
"react-svg-loader": "^2.1.0",
|
||||||
"shx": "^0.2.2",
|
"shx": "^0.2.2",
|
||||||
"source-map-loader": "^0.2.4",
|
"source-map-loader": "^0.2.4",
|
||||||
@ -76,11 +75,4 @@
|
|||||||
"webpack-cli": "3.1.2",
|
"webpack-cli": "3.1.2",
|
||||||
"webpack-dev-server": "^3.1.9"
|
"webpack-dev-server": "^3.1.9"
|
||||||
},
|
},
|
||||||
"reactSnap": {
|
|
||||||
"source": "public",
|
|
||||||
"puppeteerArgs": [
|
|
||||||
"--no-sandbox",
|
|
||||||
"--disable-setuid-sandbox"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ const CallToAction: React.StatelessComponent<ContextInterface> = ({ children })
|
|||||||
Read the Docs
|
Read the Docs
|
||||||
</Button>
|
</Button>
|
||||||
</CallToActionContainer>
|
</CallToActionContainer>
|
||||||
{navigator.userAgent !== 'ReactSnap' ? children : null}
|
{children}
|
||||||
</StyledCallToAction>
|
</StyledCallToAction>
|
||||||
)}
|
)}
|
||||||
</ThemeContext.Consumer>
|
</ThemeContext.Consumer>
|
||||||
|
@ -156,7 +156,7 @@ class Code extends React.Component<CodeProps, CodeState> {
|
|||||||
<StyledCopyInput readOnly={true} aria-hidden="true" ref={this._code} value={children} />
|
<StyledCopyInput readOnly={true} aria-hidden="true" ref={this._code} value={children} />
|
||||||
) : null}
|
) : null}
|
||||||
</Base>
|
</Base>
|
||||||
{navigator.userAgent !== 'ReactSnap' && canCopy ? (
|
{canCopy ? (
|
||||||
<Button onClick={this._handleCopyAsync.bind(this)}>{this.state.didCopy ? 'Copied' : 'Copy'}</Button>
|
<Button onClick={this._handleCopyAsync.bind(this)}>{this.state.didCopy ? 'Copied' : 'Copy'}</Button>
|
||||||
) : null}
|
) : null}
|
||||||
</Container>
|
</Container>
|
||||||
|
@ -18,7 +18,7 @@ const Hero: React.StatelessComponent<ContextInterface> = ({ children }) => (
|
|||||||
Read the Docs
|
Read the Docs
|
||||||
</Button>
|
</Button>
|
||||||
</HeroContainer>
|
</HeroContainer>
|
||||||
{navigator.userAgent !== 'ReactSnap' ? children : null}
|
{children}
|
||||||
</StyledHero>
|
</StyledHero>
|
||||||
)}
|
)}
|
||||||
</ThemeContext.Consumer>
|
</ThemeContext.Consumer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user