diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/dev-tools-pages/package.json | 10 | ||||
-rw-r--r-- | packages/dev-tools-pages/ts/components/call_to_action.tsx | 2 | ||||
-rw-r--r-- | packages/dev-tools-pages/ts/components/code.tsx | 2 | ||||
-rw-r--r-- | packages/dev-tools-pages/ts/components/hero.tsx | 2 |
4 files changed, 4 insertions, 12 deletions
diff --git a/packages/dev-tools-pages/package.json b/packages/dev-tools-pages/package.json index 8969799b2..4af58fbb1 100644 --- a/packages/dev-tools-pages/package.json +++ b/packages/dev-tools-pages/package.json @@ -7,7 +7,7 @@ "private": true, "description": "0x Dev tools pages", "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:dev": "../../node_modules/.bin/webpack --mode development", "clean": "shx rm -f public/bundle*", @@ -61,7 +61,6 @@ "less-loader": "^4.1.0", "make-promises-safe": "^1.1.0", "raw-loader": "^0.5.1", - "react-snap": "^1.19.0", "react-svg-loader": "^2.1.0", "shx": "^0.2.2", "source-map-loader": "^0.2.4", @@ -76,11 +75,4 @@ "webpack-cli": "3.1.2", "webpack-dev-server": "^3.1.9" }, - "reactSnap": { - "source": "public", - "puppeteerArgs": [ - "--no-sandbox", - "--disable-setuid-sandbox" - ] - } } 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> |