-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(registry): show password strenght to user (#27)
This change was made by @JE1999, I just updated it with changes from `master`
- Loading branch information
1 parent
7408cfa
commit 7167a35
Showing
10 changed files
with
140 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import * as React from 'react'; | ||
import { Typography } from '@mui/material'; | ||
|
||
export default function PasswordLevel({ passwordLevel }: any) { | ||
return passwordLevel.length > 0 ? ( | ||
<> | ||
<div | ||
style={{ | ||
width: '100%', | ||
display: 'flex', | ||
gap: '6.66%', | ||
marginBottom: '12px', | ||
}} | ||
> | ||
{passwordLevel.id >= 0 && ( | ||
<div | ||
style={{ | ||
height: '8px', | ||
width: '20%', | ||
background: '#E05D56', | ||
borderRadius: '10px', | ||
}} | ||
/> | ||
)} | ||
{passwordLevel.id >= 1 && ( | ||
<div | ||
style={{ | ||
height: '8px', | ||
width: '20%', | ||
background: '#E0D256', | ||
borderRadius: '10px', | ||
}} | ||
/> | ||
)} | ||
{passwordLevel.id >= 2 && ( | ||
<div | ||
style={{ | ||
height: '8px', | ||
width: '20%', | ||
background: '#B4E056', | ||
borderRadius: '10px', | ||
}} | ||
/> | ||
)} | ||
{passwordLevel.id >= 3 && ( | ||
<div | ||
style={{ | ||
height: '8px', | ||
width: '20%', | ||
background: '#A3E056', | ||
borderRadius: '10px', | ||
}} | ||
/> | ||
)} | ||
</div> | ||
<Typography | ||
sx={{ fontWeight: '400', fontSize: '14px', color: '#707070' }} | ||
> | ||
Nivel de contraseña | ||
{passwordLevel.id === 0 && ' Muy Bajo'} | ||
{passwordLevel.id === 1 && ' Bajo'} | ||
{passwordLevel.id === 2 && ' Medio'} | ||
{passwordLevel.id === 3 && ' Fuerte'} | ||
</Typography> | ||
</> | ||
) : null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.