0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): move handle social route to global anonymous route enum (#5842)

This commit is contained in:
Charles Zhao 2024-05-10 16:20:12 +08:00 committed by GitHub
parent dc0d5775ae
commit 3d4404f5df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 3 deletions

View file

@ -25,7 +25,7 @@ function AppRoutes() {
element={<AcceptInvitation />}
/>
<Route path={GlobalAnonymousRoute.Profile + '/*'} element={<Profile />} />
<Route path="/handle-social" element={<HandleSocialCallback />} />
<Route path={GlobalAnonymousRoute.HandleSocial} element={<HandleSocialCallback />} />
<Route path={GlobalRoute.CheckoutSuccessCallback} element={<CheckoutSuccessCallback />} />
<Route index element={<Main />} />
</Route>

View file

@ -14,7 +14,6 @@ import useSwrOptions from '@/hooks/use-swr-options';
import Callback from '@/pages/Callback';
import CheckoutSuccessCallback from '@/pages/CheckoutSuccessCallback';
import Profile from '@/pages/Profile';
import HandleSocialCallback from '@/pages/Profile/containers/HandleSocialCallback';
import Welcome from '@/pages/Welcome';
import { dropLeadingSlash } from '@/utils/url';
@ -48,7 +47,6 @@ export function ConsoleRoutes() {
path={dropLeadingSlash(GlobalAnonymousRoute.Profile) + '/*'}
element={<Profile />}
/>
<Route path="handle-social" element={<HandleSocialCallback />} />
<Route element={<TenantAccess />}>
{isCloud && (
<Route

View file

@ -23,6 +23,7 @@ export enum GlobalAnonymousRoute {
SocialDemoCallback = '/social-demo-callback',
AcceptInvitation = '/accept',
Profile = '/profile',
HandleSocial = '/handle-social',
}
/**