mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore(console): block subscritpion route (#4139)
This commit is contained in:
parent
947de83173
commit
02ccc24d72
1 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,7 @@ import {
|
||||||
WebhookDetailsTabs,
|
WebhookDetailsTabs,
|
||||||
TenantSettingsTabs,
|
TenantSettingsTabs,
|
||||||
} from '@/consts';
|
} from '@/consts';
|
||||||
import { isCloud } from '@/consts/env';
|
import { isCloud, isProduction } from '@/consts/env';
|
||||||
import OverlayScrollbar from '@/ds-components/OverlayScrollbar';
|
import OverlayScrollbar from '@/ds-components/OverlayScrollbar';
|
||||||
import ApiResourceDetails from '@/pages/ApiResourceDetails';
|
import ApiResourceDetails from '@/pages/ApiResourceDetails';
|
||||||
import ApiResourcePermissions from '@/pages/ApiResourceDetails/ApiResourcePermissions';
|
import ApiResourcePermissions from '@/pages/ApiResourceDetails/ApiResourcePermissions';
|
||||||
|
@ -148,7 +148,9 @@ function ConsoleContent() {
|
||||||
<Route index element={<Navigate replace to={TenantSettingsTabs.Settings} />} />
|
<Route index element={<Navigate replace to={TenantSettingsTabs.Settings} />} />
|
||||||
<Route path={TenantSettingsTabs.Settings} element={<TenantBasicSettings />} />
|
<Route path={TenantSettingsTabs.Settings} element={<TenantBasicSettings />} />
|
||||||
<Route path={TenantSettingsTabs.Domains} element={<TenantDomainSettings />} />
|
<Route path={TenantSettingsTabs.Domains} element={<TenantDomainSettings />} />
|
||||||
<Route path={TenantSettingsTabs.Subscription} element={<Subscription />} />
|
{!isProduction && (
|
||||||
|
<Route path={TenantSettingsTabs.Subscription} element={<Subscription />} />
|
||||||
|
)}
|
||||||
</Route>
|
</Route>
|
||||||
)}
|
)}
|
||||||
</Routes>
|
</Routes>
|
||||||
|
|
Loading…
Reference in a new issue