From cb08377bc8db22e243a81768d979130eebcedfe9 Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Thu, 22 Jun 2023 17:59:28 -0400 Subject: [PATCH] imp(steps): remove redundant password bar (#38) --- .../elements/passwordLevel/index.tsx | 41 ++----------------- 1 file changed, 4 insertions(+), 37 deletions(-) diff --git a/src/components/elements/passwordLevel/index.tsx b/src/components/elements/passwordLevel/index.tsx index 30c7df47..8febe814 100644 --- a/src/components/elements/passwordLevel/index.tsx +++ b/src/components/elements/passwordLevel/index.tsx @@ -7,7 +7,10 @@ interface PasswordRequirementProps { text: string; } -const PasswordRequirement: React.FC = ({ met, text }) => ( +const PasswordRequirement: React.FC = ({ + met, + text, +}) => (
= ({ met, text })
); -interface ProgressBarProps { - filled: boolean; - color: string; -} - -const ProgressBar: React.FC = ({ filled, color }) => ( -
-); - const PASSWORD_LEVELS = ['Muy Bajo', ' Bajo', ' Medio', ' Fuerte']; -const ProgressBarColors = ['#E05D56', '#E0D256', '#B4E056', '#A3E056']; - interface PasswordLevelProps { passwordLevel: { contains: string[]; @@ -67,24 +52,6 @@ const PasswordLevel: React.FC = ({ passwordLevel }) => { met={passwordLevel.length >= 8} text="8 caracteres como mínimo" /> - -
- {ProgressBarColors.map((color, index) => ( - = index} - color={color} - /> - ))} -