From c1b9760502da52674bf5e85837518e65c2773edf Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 10 Oct 2018 16:58:07 +0200 Subject: [PATCH] refactor(components/Unauthenticated): use CoreUI instead of Tabler --- embark-ui/src/components/Unauthenticated.css | 3 ++ embark-ui/src/components/Unauthenticated.js | 53 ++++++++++++-------- 2 files changed, 34 insertions(+), 22 deletions(-) create mode 100644 embark-ui/src/components/Unauthenticated.css diff --git a/embark-ui/src/components/Unauthenticated.css b/embark-ui/src/components/Unauthenticated.css new file mode 100644 index 000000000..87c025ba1 --- /dev/null +++ b/embark-ui/src/components/Unauthenticated.css @@ -0,0 +1,3 @@ +.login-form { + margin-top: 1em; +} diff --git a/embark-ui/src/components/Unauthenticated.js b/embark-ui/src/components/Unauthenticated.js index 79e653513..10ded37d7 100644 --- a/embark-ui/src/components/Unauthenticated.js +++ b/embark-ui/src/components/Unauthenticated.js @@ -1,6 +1,6 @@ import PropTypes from "prop-types"; import React from 'react'; -import {Page, Alert, Form, Button} from "tabler-react"; +import './Unauthenticated.css'; class Unauthenticated extends React.Component { constructor(props){ @@ -19,28 +19,37 @@ class Unauthenticated extends React.Component { render() { return ( - - {this.props.error && - {this.props.error} - } -
this.handleSubmit(e)}> - this.handleChange(e)} - placeholder="Enter Embark Host"/> - this.handleChange(e)} - placeholder="Enter Token"/> - - -
+ +

Login

+
+
this.handleSubmit(e)}> +
+ + this.handleChange(e)} + value={this.state.host}/> +
+
+ + this.handleChange(e)} + value={this.state.token}/> + Execute embark run in the command line to get your token. +
+ +
+
+
); - } + } } Unauthenticated.propTypes = {