Skip to content

Commit

Permalink
feat(Auth): added the reset button and fix the padding of inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Anishali2 committed Feb 16, 2024
1 parent d6f0c89 commit f3d0745
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion apps/web/app/[locale]/auth/passcode/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ function EmailScreen({ form, className }: { form: TAuthenticationPasscode } & IC

function PasscodeScreen({ form, className }: { form: TAuthenticationPasscode } & IClassName) {
const t = useTranslations();
console.log(form.authScreen.screen);
const inputsRef = useRef<Array<HTMLInputElement>>([]);
const resetForm = () => {
if (inputsRef.current) {
Expand Down
3 changes: 0 additions & 3 deletions apps/web/lib/components/inputs/auth-code-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ export const AuthCodeInputField = forwardRef<AuthCodeRef, AuthCodeProps>(
throw new Error(t('errors.INVALID_ALLOWED_CHARACTER'));
}

// const inputsRef = useRef<Array<HTMLInputElement>>([]);
const inputProps = propsMap[allowedCharacters];
console.log('formaaaa', JSON.stringify(inputsRef.current.map((input) => input.value).join('')));

const validDefaultValue =
defaultValue && defaultValue.length === length && defaultValue.match(inputProps.pattern) ? true : false;

Expand Down

0 comments on commit f3d0745

Please sign in to comment.