Open milojezek opened 5 months ago
Let's look at the existing LoginPage.tsx & LoginForm.tsx. Can we improve the code structure? Maybe create a custom hook for handling submit/auth?
LoginPage.tsx
LoginForm.tsx
I can also think of using AuthContext & AuthProvider but it would be a new feature.
Definition of done:
I try refactoring my code and use hook.
@VeveCambor Feel free to update the issue's description :)
Let's look at the existing
LoginPage.tsx
&LoginForm.tsx
. Can we improve the code structure? Maybe create a custom hook for handling submit/auth?I can also think of using AuthContext & AuthProvider but it would be a new feature.
Definition of done: