This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/components/pages/User Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,22 @@ const PasswordStrengthBar = React.lazy(
8
8
9
9
/**
10
10
* PasswordStrengthBarWrapper component's parameter type.
11
- * @typedef {Object } PasswordStrengthBarWrapperArgs
12
- * @property {string } currentPassword The password to check.
13
- * @property {(number, PasswordFeedback) => void } scoreChangeCallback A function which receives the password's strength and reacts to it.
14
11
*/
15
12
export type PasswordStrengthBarWrapperArgs = {
13
+ /** The password to check. */
16
14
currentPassword : string
15
+ /**
16
+ * A function which receives the password's strength and reacts to it.
17
+ * @param score The score rating the quality of the password.
18
+ * @param feedback Object containing information regarding the feedback's design.
19
+ */
17
20
scoreChangeCallback : ( score : number , feedback : PasswordFeedback ) => void
18
21
}
19
22
20
23
/**
21
24
* A component wrapping the password strength checks by lazy loading the component if necessary.
22
25
* @param {PasswordStrengthBarWrapperArgs }
23
- * @returns password strength bar or null, depending on if user already inserted a password
26
+ * @returns PasswordStrengthBar or null, depending on if user already inserted a password.
24
27
*/
25
28
26
29
const PasswordStrengthBarWrapper = ( {
You can’t perform that action at this time.
0 commit comments