-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add aws cloud solution ui implementation. (#102)
* add aws cloud solution ui implementation * typo fix
- Loading branch information
1 parent
cca53d2
commit 758751b
Showing
7 changed files
with
232 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React, {useState} from 'react'; | ||
import {Modal, Form, Input, Button} from 'antd'; | ||
|
||
const AWSLogin = ({ | ||
visible, setVisible, onLoginFinish, onLoginFail | ||
}) => { | ||
|
||
const handleCancel = () => { | ||
setVisible(false); | ||
console.log('Close'); | ||
onLoginFail(); | ||
}; | ||
|
||
return (<> | ||
<Modal | ||
title="AWS Login" | ||
open={visible} | ||
onCancel={handleCancel} | ||
footer={null} | ||
> | ||
<Form | ||
name="login_form" | ||
initialValues={{remember: true}} | ||
onFinish={onLoginFinish} | ||
> | ||
<Form.Item | ||
name="username" | ||
rules={[{required: true, message: 'Please input your username!'}]} | ||
> | ||
<Input placeholder="access key id"/> | ||
</Form.Item> | ||
<Form.Item | ||
name="password" | ||
rules={[{required: true, message: 'Please input your password!'}]} | ||
> | ||
<Input.Password placeholder="secret access key"/> | ||
</Form.Item> | ||
<Form.Item> | ||
<Button type="primary" htmlType="submit" style={{width: '100%'}}> | ||
Log in | ||
</Button> | ||
</Form.Item> | ||
</Form> | ||
</Modal> | ||
</>); | ||
}; | ||
|
||
export default AWSLogin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.