From b2ebbc6a0ac37c2eb75ac3bc04e88da4e729ea81 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Wed, 26 Sep 2018 21:39:04 -0400 Subject: [PATCH] use a few more pf-core components --- dist/index.html | 2 +- src/components/Login.jsx | 48 +++++++++++++++++++++------------------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/dist/index.html b/dist/index.html index 9fd779118fa4..4f295066f2b6 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,7 +1,7 @@ - AWX + AWX
diff --git a/src/components/Login.jsx b/src/components/Login.jsx index 1e8553ff2b43..78e272ab4fac 100644 --- a/src/components/Login.jsx +++ b/src/components/Login.jsx @@ -1,7 +1,11 @@ import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; -import { Button } from '@patternfly/react-core'; +import { + Bullseye, + Button, + TextInput +} from '@patternfly/react-core'; import api from '../api'; @@ -12,7 +16,9 @@ class Login extends Component { redirect: false, }; - handleChange = event => this.setState({ [event.target.name]: event.target.value }); + handleUsernameChange = value => this.setState({ username: value }); + + handlePasswordChange = value => this.setState({ password: value }); handleSubmit = event => { const { username, password } = this.state; @@ -31,35 +37,31 @@ class Login extends Component { } return ( -
-
-