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 React from "react"
import * as antd from "antd" import * as antd from "antd"
export default (props) => { const ChangePasswordComponent = (props) => {
return <div> const [loading, setLoading] = React.useState(false)
<antd.Button>
Change password return <div className="changePasswordPrompt">
</antd.Button> <div className="title">
<h1>Change Password</h1>
</div>
<div className="form">
</div>
</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>
}