-
Notifications
You must be signed in to change notification settings - Fork 4
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
rework : split AuthenticationRouter into atomic component #542
Conversation
Signed-off-by: capyq <[email protected]>
Signed-off-by: capyq <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't touch src/utils/AuthService
?
@@ -77,10 +45,10 @@ function AuthenticationRouter({ | |||
alignItems="center" | |||
direction="column" | |||
> | |||
{userManager.error !== null && ( | |||
{userManager.error && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can have an empty string if we haven't retrieve the error message.
error: string | null; | ||
}; | ||
|
||
export interface AuthenticationRouterProps { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we keep the props near the component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, I use this type in other files, which is why I could change it if asked.
Signed-off-by: capyq <[email protected]>
It's a minimal rework of the component; the service will be reworked later. |
@TheMaskedTurtle, rebase done. |
Quality Gate passedIssues Measures |
Signed-off-by: capyq <[email protected]>
Extract subcomponents into their own files.