Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgot password Form #32

Open
2 tasks
igor-tech opened this issue May 7, 2024 · 0 comments
Open
2 tasks

Forgot password Form #32

igor-tech opened this issue May 7, 2024 · 0 comments
Labels
feature Any feature

Comments

@igor-tech
Copy link
Owner

igor-tech commented May 7, 2024

  • Все формы должны принимать коллбэк onSubmit через props, то есть не зависеть от уровня логики
  • Все формы должны иметь нужные валидации
  • Логику отправки формы, валидации и control выносим в отдельный хук use-название формы (хуки храним в той же папке, что и форма)
  • Эта сама форма, не страница. Все должно быть обернуто в тег form не card

Перед реализацией формы надо убедиться, что все контролируемые компоненты уже сделаны

Describe your desired solution

Форма Forgot password

  • Реализовать валидацию формы с помощью ZOD "zodResolver(loginSchema)" и вынести схемы валидации в utils
  • Для реализации используем useForm из 'react-hook-form'

Additional context

image

@igor-tech igor-tech added the feature Any feature label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Any feature
Projects
None yet
Development

No branches or pull requests

1 participant