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