0
Fork 0
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:
Xiao Yijun 2023-07-08 12:02:49 +08:00 committed by GitHub
parent 947de83173
commit 02ccc24d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>