From a288afbf68fc300c3f36aafdce1c3159466ab12e Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 3 Oct 2018 16:33:10 -0400 Subject: [PATCH] Address feedback --- .../containers/ApplicationPreviewContainer.js | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/embark-ui/src/containers/ApplicationPreviewContainer.js b/embark-ui/src/containers/ApplicationPreviewContainer.js index 7754a6028..d388981ee 100644 --- a/embark-ui/src/containers/ApplicationPreviewContainer.js +++ b/embark-ui/src/containers/ApplicationPreviewContainer.js @@ -1,27 +1,35 @@ import PropTypes from 'prop-types'; import React from 'react'; +import {Form, Button} from 'tabler-react'; class ApplicationPreviewContainer extends React.Component { constructor(props) { super(props); this.state = { - // TODO(andremedeiros): Figure out how to pull this from the actual host. previewUrl: this.props.previewHomepage }; } render() { return ( -
-
- this.handlePreviewUrlChange(e)} /> -
- -
-
- -
+ + + this.handlePreviewUrlChange(e)} /> + + + + + + ); } @@ -48,7 +56,7 @@ ApplicationPreviewContainer.propTypes = { }; ApplicationPreviewContainer.defaultProps = { - previewHomepage: 'http://localhost:8000' + previewHomepage: window.location.protocol + '//' + window.location.host }; export default ApplicationPreviewContainer;