mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(console): move handle social route to global anonymous route enum (#5842)
This commit is contained in:
parent
dc0d5775ae
commit
3d4404f5df
3 changed files with 2 additions and 3 deletions
|
@ -25,7 +25,7 @@ function AppRoutes() {
|
||||||
element={<AcceptInvitation />}
|
element={<AcceptInvitation />}
|
||||||
/>
|
/>
|
||||||
<Route path={GlobalAnonymousRoute.Profile + '/*'} element={<Profile />} />
|
<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 path={GlobalRoute.CheckoutSuccessCallback} element={<CheckoutSuccessCallback />} />
|
||||||
<Route index element={<Main />} />
|
<Route index element={<Main />} />
|
||||||
</Route>
|
</Route>
|
||||||
|
|
|
@ -14,7 +14,6 @@ import useSwrOptions from '@/hooks/use-swr-options';
|
||||||
import Callback from '@/pages/Callback';
|
import Callback from '@/pages/Callback';
|
||||||
import CheckoutSuccessCallback from '@/pages/CheckoutSuccessCallback';
|
import CheckoutSuccessCallback from '@/pages/CheckoutSuccessCallback';
|
||||||
import Profile from '@/pages/Profile';
|
import Profile from '@/pages/Profile';
|
||||||
import HandleSocialCallback from '@/pages/Profile/containers/HandleSocialCallback';
|
|
||||||
import Welcome from '@/pages/Welcome';
|
import Welcome from '@/pages/Welcome';
|
||||||
import { dropLeadingSlash } from '@/utils/url';
|
import { dropLeadingSlash } from '@/utils/url';
|
||||||
|
|
||||||
|
@ -48,7 +47,6 @@ export function ConsoleRoutes() {
|
||||||
path={dropLeadingSlash(GlobalAnonymousRoute.Profile) + '/*'}
|
path={dropLeadingSlash(GlobalAnonymousRoute.Profile) + '/*'}
|
||||||
element={<Profile />}
|
element={<Profile />}
|
||||||
/>
|
/>
|
||||||
<Route path="handle-social" element={<HandleSocialCallback />} />
|
|
||||||
<Route element={<TenantAccess />}>
|
<Route element={<TenantAccess />}>
|
||||||
{isCloud && (
|
{isCloud && (
|
||||||
<Route
|
<Route
|
||||||
|
|
|
@ -23,6 +23,7 @@ export enum GlobalAnonymousRoute {
|
||||||
SocialDemoCallback = '/social-demo-callback',
|
SocialDemoCallback = '/social-demo-callback',
|
||||||
AcceptInvitation = '/accept',
|
AcceptInvitation = '/accept',
|
||||||
Profile = '/profile',
|
Profile = '/profile',
|
||||||
|
HandleSocial = '/handle-social',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue