ywana-core8 0.1.36 → 0.1.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -9,13 +9,12 @@ import { ChangeUserPasswordDialog } from './dialogs'
9
9
  export const ForgetUserPasswordAction = (props) => {
10
10
 
11
11
  const site = useContext(SiteContext)
12
- const { user={}, icon = false, label="Reset Password", onOK, onSuccess } = props
12
+ const { user = {}, icon = false, label = "Reset Password", onOK } = props
13
13
 
14
14
  async function execute() {
15
15
  try {
16
16
  const { email } = user
17
17
  await onOK(email)
18
- if (onSuccess) onSuccess()
19
18
  site.notify({
20
19
  title: <Text>Forgot Password</Text>,
21
20
  body: <Text>Check your email to reset your password</Text>,
@@ -23,7 +22,7 @@ export const ForgetUserPasswordAction = (props) => {
23
22
  })
24
23
  } catch (error) {
25
24
  site.notify({
26
- title: "Error",
25
+ title: "Errorrrrr",
27
26
  body: error.message,
28
27
  type: "danger",
29
28
  icon: "error"
@@ -82,7 +81,7 @@ export const ChangeUserPasswordAction = (props) => {
82
81
 
83
82
  const site = useContext(SiteContext)
84
83
 
85
- const { user, icon = false, oldPwdRequired=true } = props
84
+ const { user, icon = false, oldPwdRequired = true } = props
86
85
 
87
86
  const errorMessages = useMemo(() => ({
88
87
  "ERROR OLD PASSWORD": { title: "Error", description: <Text>Incorrect old password</Text> },