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

Personal information (editable) Form #34

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

Personal information (editable) Form #34

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

Comments

@igor-tech
Copy link
Owner

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

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

Describe your desired solution

Форма Personal information (editable)

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

Additional context

image

В режиме редактирования имени

image

@igor-tech igor-tech added the feature Any feature label May 7, 2024
@igor-tech igor-tech self-assigned this May 12, 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