added change password component

This commit is contained in:
srgooglo 2022-10-20 17:38:11 +02:00
parent 32ac0fadc4
commit fa5ecac766
2 changed files with 28 additions and 5 deletions

View File

@ -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>
}

View File

@ -0,0 +1,7 @@
import React from "react"
export default (props) => {
return <div>
<h1>Change Password</h1>
</div>
}