mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
added change password component
This commit is contained in:
parent
32ac0fadc4
commit
fa5ecac766
@ -1,10 +1,26 @@
|
||||
import React from "react"
|
||||
import * as antd from "antd"
|
||||
|
||||
export default (props) => {
|
||||
return <div>
|
||||
<antd.Button>
|
||||
Change password
|
||||
</antd.Button>
|
||||
const ChangePasswordComponent = (props) => {
|
||||
const [loading, setLoading] = React.useState(false)
|
||||
|
||||
return <div className="changePasswordPrompt">
|
||||
<div className="title">
|
||||
<h1>Change Password</h1>
|
||||
</div>
|
||||
|
||||
<div className="form">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
export default (props) => {
|
||||
const onClick = () => {
|
||||
app.SidedrawerController.open("passwordChange", ChangePasswordComponent)
|
||||
}
|
||||
|
||||
return <antd.Button onClick={onClick}>
|
||||
Change password
|
||||
</antd.Button>
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
import React from "react"
|
||||
|
||||
export default (props) => {
|
||||
return <div>
|
||||
<h1>Change Password</h1>
|
||||
</div>
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user