mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
How to add new auth panel
To add new panel you need to:
- create panel component at
components/auth/[panelId] - add new context in
components/auth/PanelTransition - connect component to router in
pages/auth/AuthPage - add new state to
services/authFlowand coresponding test totests/services/authFlow - connect state to
authFlow. Updateservices/authFlow/AuthFlow.testandservices/authFlow/AuthFlow.functional.test(the last one for some complex flow) - add new actions to
components/auth/actionsand api endpoints toservices/api - whatever else you need
Commit id with example implementation: f4d315c