Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: wrap authenticated routes #5695

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

Merged
merged 3 commits into from
Jan 12, 2023
Merged

refactor: wrap authenticated routes #5695

merged 3 commits into from
Jan 12, 2023

Conversation

BrunoQuaresma
Copy link
Collaborator

Wrap authenticated routes together so we don't have to pass <RequireAuth> all the time.

@BrunoQuaresma BrunoQuaresma self-assigned this Jan 12, 2023
@BrunoQuaresma BrunoQuaresma requested a review from a team as a code owner January 12, 2023 17:35
@BrunoQuaresma BrunoQuaresma requested review from Kira-Pilot and removed request for a team January 12, 2023 17:35
@BrunoQuaresma
Copy link
Collaborator Author

I removed the test temporality until I figured out a bit the better place for the banner stuff

@@ -25,6 +20,6 @@ export const RequireAuth: FC<PropsWithChildren<RequireAuthProps>> = ({
} else if (authState.hasTag("loading")) {
return <FullScreenLoader />
} else {
return children
return <Outlet />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏆

@BrunoQuaresma BrunoQuaresma merged commit e6072ef into main Jan 12, 2023
@BrunoQuaresma BrunoQuaresma deleted the bq/refactor-routes branch January 12, 2023 18:52
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants