chore(browser): change Go to refresh since that's what they do

This commit is contained in:
Jonathan Rainville 2018-12-21 12:08:27 -05:00 committed by Iuri Matias
parent 1ccc3e7796
commit f2d6f609ba
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import React from 'react'; import React from 'react';
import {Button, InputGroup, Input, InputGroupAddon} from 'reactstrap'; import {Button, InputGroup, Input, InputGroupAddon} from 'reactstrap';
import FontAwesome from 'react-fontawesome';
class Preview extends React.Component { class Preview extends React.Component {
constructor(props) { constructor(props) {
@ -31,9 +32,11 @@ class Preview extends React.Component {
<InputGroup> <InputGroup>
<Input placeholder="URL" <Input placeholder="URL"
value={this.state.previewUrl} value={this.state.previewUrl}
onChange={(e) => this.handlePreviewUrlChange(e)} /> onChange={(e) => this.handlePreviewUrlChange(e)}/>
<InputGroupAddon addonType="append"> <InputGroupAddon addonType="append">
<Button className="ml-auto" color="primary" onClick={(e) => this.handlePreviewGo(e)}>Go</Button> <Button className="ml-auto" color="primary" onClick={(e) => this.handlePreviewGo(e)}>
<FontAwesome name="refresh"/>
</Button>
</InputGroupAddon> </InputGroupAddon>
</InputGroup> </InputGroup>
<iframe width="100%" <iframe width="100%"