|
@@ -61,14 +61,10 @@ const LoginForm = ({ store, history, doLogin, isLoggedIn }) => {
|
|
|
|
|
|
return (
|
|
|
<div className="registerForm">
|
|
|
- {/* <div className="wrapperRegisterForm"> */}
|
|
|
<div>
|
|
|
<Form
|
|
|
name="basic"
|
|
|
form={form}
|
|
|
- // initialValues={{
|
|
|
- // remember: true,
|
|
|
- // }}
|
|
|
onFinish={onFinish}
|
|
|
onFinishFailed={onFinishFailed}
|
|
|
>
|
|
@@ -109,27 +105,16 @@ const LoginForm = ({ store, history, doLogin, isLoggedIn }) => {
|
|
|
prefix={<LockOutlined className="site-form-item-icon" />}
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
- {/*
|
|
|
- <Form.Item name="remember" valuePropName="checked">
|
|
|
- <Checkbox>Remember me</Checkbox>
|
|
|
- </Form.Item> */}
|
|
|
+
|
|
|
|
|
|
<Form.Item>
|
|
|
<Button
|
|
|
type="primary"
|
|
|
htmlType="submit"
|
|
|
- // disabled = {!onLogin ? true : false}
|
|
|
onClick={onLogin}
|
|
|
>
|
|
|
Submit
|
|
|
</Button>
|
|
|
- {/* <Button
|
|
|
- onClick={() => {
|
|
|
- history.push("/library");
|
|
|
- }}
|
|
|
- >
|
|
|
- Library
|
|
|
- </Button> */}
|
|
|
<Link to="/" className="link-approval">Registration</Link>
|
|
|
</Form.Item>
|
|
|
</Form>
|
|
@@ -148,19 +133,3 @@ const mapDispatchToProps = (dispatch) => ({
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(LoginForm);
|
|
|
|
|
|
-// if(type == 'PROMISE') {
|
|
|
-// {
|
|
|
-// status PENDING ||
|
|
|
-// FULFILED ||
|
|
|
-// REJECTED
|
|
|
-// }
|
|
|
-// }
|
|
|
-// action PENDING = () => (
|
|
|
-// {type: 'promise', status: 'PENDING', payload: 'null', error: 'null'}
|
|
|
-// )
|
|
|
-// action FULFILED =() => (
|
|
|
-// {type: 'SET_STATUS', status: 'RESOLVED', payload, error: null }
|
|
|
-// )
|
|
|
-// action REJECTED =() => (
|
|
|
-// {type: 'SET_STATUS', status: 'REJECTED', payload: null, error}
|
|
|
-// )
|