mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 16:07:10 +00:00
chore: linter fixes
This commit is contained in:
parent
649ff2f0f7
commit
d097fc7c4e
@ -8,15 +8,21 @@ import {
|
||||
AlertOverview,
|
||||
AllAlertChannelsPage,
|
||||
AllErrors,
|
||||
APIKeys,
|
||||
ApiMonitoring,
|
||||
BillingPage,
|
||||
ChannelsEditPage,
|
||||
CreateAlertChannelAlerts,
|
||||
CreateNewAlerts,
|
||||
CustomDomainSettings,
|
||||
DashboardPage,
|
||||
DashboardWidget,
|
||||
EditRulesPage,
|
||||
ErrorDetails,
|
||||
GeneralSettings,
|
||||
Home,
|
||||
InfrastructureMonitoring,
|
||||
IngestionSettings,
|
||||
InstalledIntegrations,
|
||||
LicensePage,
|
||||
ListAllALertsPage,
|
||||
@ -27,10 +33,12 @@ import {
|
||||
LogsIndexToFields,
|
||||
LogsSaveViews,
|
||||
MetricsExplorer,
|
||||
MySettings,
|
||||
NewDashboardPage,
|
||||
OldLogsExplorer,
|
||||
Onboarding,
|
||||
OnboardingV2,
|
||||
OrganizationSettingsPage,
|
||||
OrgOnboarding,
|
||||
PasswordReset,
|
||||
PipelinePage,
|
||||
@ -39,6 +47,7 @@ import {
|
||||
ServicesTablePage,
|
||||
ServiceTopLevelOperationsPage,
|
||||
SettingsPage,
|
||||
ShortcutsPage,
|
||||
SignupPage,
|
||||
SomethingWentWrong,
|
||||
StatusPage,
|
||||
@ -54,15 +63,6 @@ import {
|
||||
WorkspaceAccessRestricted,
|
||||
WorkspaceBlocked,
|
||||
WorkspaceSuspended,
|
||||
MySettings,
|
||||
CustomDomainSettings,
|
||||
GeneralSettings,
|
||||
IngestionSettings,
|
||||
APIKeys,
|
||||
BillingPage,
|
||||
ShortcutsPage,
|
||||
OrganizationSettingsPage,
|
||||
ChannelsEditPage,
|
||||
} from './pageComponents';
|
||||
|
||||
const routes: AppRoutes[] = [
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import { AppRoutes } from 'AppRoutes/routes';
|
||||
import routes from 'AppRoutes/routes';
|
||||
import routes, { AppRoutes } from 'AppRoutes/routes';
|
||||
import { FeatureKeys } from 'constants/features';
|
||||
import { getRoutes } from 'pages/Settings/utils';
|
||||
import { useAppContext } from 'providers/App/App';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
import useComponentPermission from './useComponentPermission';
|
||||
import { FeatureKeys } from 'constants/features';
|
||||
import { useGetTenantLicense } from './useGetTenantLicense';
|
||||
|
||||
export const useAppRoutes = (): { routes: AppRoutes[] } => {
|
||||
|
||||
@ -13,9 +13,8 @@ import { Wrench } from 'lucide-react';
|
||||
import { useAppContext } from 'providers/App/App';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import { USER_ROLES } from 'types/roles';
|
||||
|
||||
import { Outlet } from 'react-router-dom-v5-compat';
|
||||
import { USER_ROLES } from 'types/roles';
|
||||
|
||||
function SettingsPage(): JSX.Element {
|
||||
const { pathname, search } = useLocation();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { ROLES, USER_ROLES } from 'types/roles';
|
||||
import ROUTES, { SETTINGS_NESTED_ROUTES } from 'constants/routes';
|
||||
import { ROLES, USER_ROLES } from 'types/roles';
|
||||
|
||||
export const getRoutes = (
|
||||
userRole: ROLES | null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user