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:
parent
dc0d5775ae
commit
3d4404f5df
3 changed files with 2 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -23,6 +23,7 @@ export enum GlobalAnonymousRoute {
|
|||
SocialDemoCallback = '/social-demo-callback',
|
||||
AcceptInvitation = '/accept',
|
||||
Profile = '/profile',
|
||||
HandleSocial = '/handle-social',
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue