ywana-core8 0.0.784 → 0.0.785
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -0
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/password.js +3 -3
package/package.json
CHANGED
@@ -10,7 +10,7 @@ import './password.css'
|
|
10
10
|
export const PasswordEditor = (props) => {
|
11
11
|
|
12
12
|
const site = useContext(SiteContext)
|
13
|
-
const { id, label = "Change Password", labelPosition = "left", className, value, onChange } = props
|
13
|
+
const { id, label = "Change Password", lang="ES", labelPosition = "left", className, value, onChange } = props
|
14
14
|
|
15
15
|
function onOK(form) {
|
16
16
|
if (onChange) onChange(id, form.password1)
|
@@ -22,13 +22,13 @@ export const PasswordEditor = (props) => {
|
|
22
22
|
}
|
23
23
|
|
24
24
|
const openDialog = () => {
|
25
|
-
site.openDialog(<ChangePasswordDialog label={label} onOK={onOK} onClose={onClose} />)
|
25
|
+
site.openDialog(<ChangePasswordDialog lang={lang} label={label} onOK={onOK} onClose={onClose} />)
|
26
26
|
}
|
27
27
|
|
28
28
|
return (
|
29
29
|
<div className={`password-editor ${className}`}>
|
30
30
|
<TextField label={label} labelPosition={labelPosition} type="password" value={value} readOnly={true} />
|
31
|
-
<Icon icon="edit" action={openDialog} size="small"/>
|
31
|
+
<Icon icon="edit" clickable action={openDialog} size="small"/>
|
32
32
|
</div>
|
33
33
|
)
|
34
34
|
}
|