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 {Button, InputGroup, Input, InputGroupAddon} from 'reactstrap';
import FontAwesome from 'react-fontawesome';
class Preview extends React.Component {
constructor(props) {
@ -31,9 +32,11 @@ class Preview extends React.Component {
<InputGroup>
<Input placeholder="URL"
value={this.state.previewUrl}
onChange={(e) => this.handlePreviewUrlChange(e)} />
onChange={(e) => this.handlePreviewUrlChange(e)}/>
<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>
</InputGroup>
<iframe width="100%"