diff --git a/src/features/home/Login.js b/src/features/home/Login.js index d516072..a491870 100644 --- a/src/features/home/Login.js +++ b/src/features/home/Login.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Redirect } from 'react-router-dom' +import { Button, TextField } from '@material-ui/core'; import matrixLogo from '../../images/matrix-logo.svg'; import * as actions from './redux/actions'; @@ -59,45 +60,31 @@ export class Login extends Component {

Welcome to Synapse Admin

- - - - - - - - - - - - - - - -
- - - - {submitted && !homeserver && -
Homeserver is required
- } -
- - - - {submitted && !username && -
Username is required
- } -
- - - - {submitted && !password && -
Password is required
- } -
-
- +
+ +
+
+ +
+
+ +
+
+ {loginPending && logging in } diff --git a/src/features/home/Login.scss b/src/features/home/Login.scss index 3c95800..17025f3 100644 --- a/src/features/home/Login.scss +++ b/src/features/home/Login.scss @@ -28,4 +28,8 @@ display: inline-block; padding: 16px; } + + .button { + margin: 16px; + } }