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

rework : split AuthenticationRouter into atomic component #542

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

capyq
Copy link
Contributor

@capyq capyq commented Aug 1, 2024

Extract subcomponents into their own files.

Signed-off-by: capyq <quentin.capy@rte-france.com>
Signed-off-by: capyq <quentin.capy@rte-france.com>
Copy link
Contributor

@Tristan-WorkGH Tristan-WorkGH left a 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 && (
Copy link
Contributor

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 {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@capyq
Copy link
Contributor Author

capyq commented Aug 8, 2024

We don't touch src/utils/AuthService?

It's a minimal rework of the component; the service will be reworked later.

@capyq
Copy link
Contributor Author

capyq commented Sep 13, 2024

@TheMaskedTurtle, rebase done.

Copy link

sonarcloud bot commented Sep 16, 2024

@TheMaskedTurtle TheMaskedTurtle merged commit 615af38 into main Sep 16, 2024
4 checks passed
@TheMaskedTurtle TheMaskedTurtle deleted the rework/AuthenticationRouter branch September 16, 2024 14:55
capyq added a commit that referenced this pull request Sep 30, 2024
Signed-off-by: capyq <quentin.capy@rte-france.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants