Skip to content

Issue 2 solution#734

Open
MarcosAAT wants to merge 1 commit intodevelopmentfrom
issue_2_Summer_2024_Marcos
Open

Issue 2 solution#734
MarcosAAT wants to merge 1 commit intodevelopmentfrom
issue_2_Summer_2024_Marcos

Conversation

@MarcosAAT
Copy link
Copy Markdown
Collaborator

No description provided.

};


const getPasswordStrength = () => {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of reruning differet componnets you can return one component and change the style and text directly.

case 2:
const clsName = "high"
const text = "High"
case 1: 
const clsName = "Medium"
const text = "Medium"

etc...

return <Text className={clsName}>{text]</Text>

} else if (passwordStrength === 0) {
alert("Password is too weak. Please choose a stronger password.");
} else if (passwordStrength === 1) {
Alert.alert(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For alers, i would use the translate function so that we can use spanish and english and creole texts depending on the language

@@ -0,0 +1,1005 @@
// nuMom/src/Components/poorPasswords.js
const poorPasswords = [
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As an improvment, instead of hardcoding this. You could use fetch method and dynamically get the file from the URL

Copy link
Copy Markdown
Owner

@edumorlom edumorlom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! left some comments!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants