diff --git a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Delete.tsx b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Delete.tsx index 44cc748fad..359f5f4593 100644 --- a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Delete.tsx +++ b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Delete.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import CodeRepository from "Model/Models/CodeRepository"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const CodeRepositoryDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const CodeRepositoryDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Index.tsx b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Index.tsx index 808ae80d46..931d4b62bc 100644 --- a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Index.tsx +++ b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Index.tsx @@ -11,9 +11,9 @@ import CodeRepository from "Model/Models/CodeRepository"; import Label from "Model/Models/Label"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageView: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Layout.tsx b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Layout.tsx index 7620efcb44..3a2a00d5e1 100644 --- a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Layout.tsx +++ b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Layout.tsx @@ -9,9 +9,9 @@ import CodeRepository from "Model/Models/CodeRepository"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const CodeRepositoryViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const CodeRepositoryViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Services.tsx b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Services.tsx index 7edd70a65e..3a17aaf689 100644 --- a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Services.tsx +++ b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Services.tsx @@ -11,9 +11,9 @@ import ServiceCatalog from "Model/Models/ServiceCatalog"; import ServiceRepository from "Model/Models/ServiceRepository"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceRepositoryPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceRepositoryPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const codeRepositoryId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Settings.tsx b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Settings.tsx index 22408b02ab..7b8bb2ac3d 100644 --- a/Dashboard/src/Pages/AICopilot/CodeRepository/View/Settings.tsx +++ b/Dashboard/src/Pages/AICopilot/CodeRepository/View/Settings.tsx @@ -5,9 +5,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import CodeRepository from "Model/Models/CodeRepository"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/AICopilot/Index.tsx b/Dashboard/src/Pages/AICopilot/Index.tsx index a51fcc3264..21025bdbb1 100644 --- a/Dashboard/src/Pages/AICopilot/Index.tsx +++ b/Dashboard/src/Pages/AICopilot/Index.tsx @@ -15,9 +15,9 @@ import CodeRepository from "Model/Models/CodeRepository"; import Label from "Model/Models/Label"; import React, { FunctionComponent, ReactElement } from "react"; -const CodeRepositoryPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const CodeRepositoryPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const Home: FunctionComponent = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const Home: FunctionComponent = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const Home: FunctionComponent = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const Home: FunctionComponent = (): ReactElement => { const [hasPasswordChanged, setHasPasswordChanged] = useState(false); return ( diff --git a/Dashboard/src/Pages/Global/UserProfile/Picture.tsx b/Dashboard/src/Pages/Global/UserProfile/Picture.tsx index 171408a7bc..4808a98b13 100644 --- a/Dashboard/src/Pages/Global/UserProfile/Picture.tsx +++ b/Dashboard/src/Pages/Global/UserProfile/Picture.tsx @@ -13,9 +13,7 @@ import UserUtil from "CommonUI/src/Utils/User"; import User from "Model/Models/User"; import React, { FunctionComponent, ReactElement } from "react"; -const Home: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Home: FunctionComponent = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const IncidentCustomFields: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Incidents/View/Delete.tsx b/Dashboard/src/Pages/Incidents/View/Delete.tsx index fabe2c2be3..deae25345b 100644 --- a/Dashboard/src/Pages/Incidents/View/Delete.tsx +++ b/Dashboard/src/Pages/Incidents/View/Delete.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import Incident from "Model/Models/Incident"; import React, { FunctionComponent, ReactElement } from "react"; -const IncidentDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const IncidentDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Incidents/View/Index.tsx b/Dashboard/src/Pages/Incidents/View/Index.tsx index d697d544e0..af74f3b8da 100644 --- a/Dashboard/src/Pages/Incidents/View/Index.tsx +++ b/Dashboard/src/Pages/Incidents/View/Index.tsx @@ -40,9 +40,9 @@ import React, { useState, } from "react"; -const IncidentView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const IncidentView: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); const [incidentStateTimeline, setIncidentStateTimeline] = useState< diff --git a/Dashboard/src/Pages/Incidents/View/Layout.tsx b/Dashboard/src/Pages/Incidents/View/Layout.tsx index 2c37058b2e..861bef2941 100644 --- a/Dashboard/src/Pages/Incidents/View/Layout.tsx +++ b/Dashboard/src/Pages/Incidents/View/Layout.tsx @@ -9,9 +9,9 @@ import Incident from "Model/Models/Incident"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const IncidentViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const IncidentViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/Incidents/View/Owners.tsx b/Dashboard/src/Pages/Incidents/View/Owners.tsx index 5175dcdd4c..29a13f6660 100644 --- a/Dashboard/src/Pages/Incidents/View/Owners.tsx +++ b/Dashboard/src/Pages/Incidents/View/Owners.tsx @@ -15,9 +15,9 @@ import Team from "Model/Models/Team"; import User from "Model/Models/User"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const IncidentOwners: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const IncidentOwners: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Logout/Logout.tsx b/Dashboard/src/Pages/Logout/Logout.tsx index 61aecff687..aa44b78de9 100644 --- a/Dashboard/src/Pages/Logout/Logout.tsx +++ b/Dashboard/src/Pages/Logout/Logout.tsx @@ -12,9 +12,7 @@ import UserUtil from "CommonUI/src/Utils/User"; import React, { FunctionComponent, ReactElement } from "react"; import useAsyncEffect from "use-async-effect"; -const Logout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Logout: FunctionComponent = (): ReactElement => { const [error, setError] = React.useState(null); useAsyncEffect(async () => { diff --git a/Dashboard/src/Pages/Monitor/View/Criteria.tsx b/Dashboard/src/Pages/Monitor/View/Criteria.tsx index 951cb6301e..c9c460741d 100644 --- a/Dashboard/src/Pages/Monitor/View/Criteria.tsx +++ b/Dashboard/src/Pages/Monitor/View/Criteria.tsx @@ -31,9 +31,9 @@ import React, { } from "react"; import { useAsyncEffect } from "use-async-effect"; -const MonitorCriteria: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorCriteria: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); const [isLoading, setIsLoading] = useState(true); diff --git a/Dashboard/src/Pages/Monitor/View/CustomFields.tsx b/Dashboard/src/Pages/Monitor/View/CustomFields.tsx index 124100ee3f..41a796e092 100644 --- a/Dashboard/src/Pages/Monitor/View/CustomFields.tsx +++ b/Dashboard/src/Pages/Monitor/View/CustomFields.tsx @@ -8,9 +8,9 @@ import Monitor from "Model/Models/Monitor"; import MonitorCustomField from "Model/Models/MonitorCustomField"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const MonitorCustomFields: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorCustomFields: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Monitor/View/Delete.tsx b/Dashboard/src/Pages/Monitor/View/Delete.tsx index 01b6e33c59..a1049a9f01 100644 --- a/Dashboard/src/Pages/Monitor/View/Delete.tsx +++ b/Dashboard/src/Pages/Monitor/View/Delete.tsx @@ -9,9 +9,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import Monitor from "Model/Models/Monitor"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const MonitorDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Monitor/View/Documentation.tsx b/Dashboard/src/Pages/Monitor/View/Documentation.tsx index b3283cd484..e47d30f626 100644 --- a/Dashboard/src/Pages/Monitor/View/Documentation.tsx +++ b/Dashboard/src/Pages/Monitor/View/Documentation.tsx @@ -19,9 +19,9 @@ import React, { } from "react"; import useAsyncEffect from "use-async-effect"; -const MonitorDocumentation: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorDocumentation: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); const [error, setError] = useState(""); diff --git a/Dashboard/src/Pages/Monitor/View/Incidents.tsx b/Dashboard/src/Pages/Monitor/View/Incidents.tsx index 131cc55a33..e1eb92c521 100644 --- a/Dashboard/src/Pages/Monitor/View/Incidents.tsx +++ b/Dashboard/src/Pages/Monitor/View/Incidents.tsx @@ -6,9 +6,9 @@ import ObjectID from "Common/Types/ObjectID"; import Navigation from "CommonUI/src/Utils/Navigation"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const MonitorIncidents: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorIncidents: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Monitor/View/Index.tsx b/Dashboard/src/Pages/Monitor/View/Index.tsx index cb1dc01876..0b0b59fac5 100644 --- a/Dashboard/src/Pages/Monitor/View/Index.tsx +++ b/Dashboard/src/Pages/Monitor/View/Index.tsx @@ -61,9 +61,7 @@ import React, { } from "react"; import useAsyncEffect from "use-async-effect"; -const MonitorView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorView: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); const [statusTimelines, setStatusTimelines] = useState< diff --git a/Dashboard/src/Pages/Monitor/View/Interval.tsx b/Dashboard/src/Pages/Monitor/View/Interval.tsx index f310915315..2331f8ed54 100644 --- a/Dashboard/src/Pages/Monitor/View/Interval.tsx +++ b/Dashboard/src/Pages/Monitor/View/Interval.tsx @@ -24,9 +24,9 @@ import React, { } from "react"; import useAsyncEffect from "use-async-effect"; -const MonitorCriteria: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorCriteria: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); const [isLoading, setIsLoading] = useState(true); diff --git a/Dashboard/src/Pages/Monitor/View/Owners.tsx b/Dashboard/src/Pages/Monitor/View/Owners.tsx index 4de96ab396..54476fa823 100644 --- a/Dashboard/src/Pages/Monitor/View/Owners.tsx +++ b/Dashboard/src/Pages/Monitor/View/Owners.tsx @@ -16,9 +16,9 @@ import Team from "Model/Models/Team"; import User from "Model/Models/User"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const MonitorOwners: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorOwners: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Monitor/View/Probes.tsx b/Dashboard/src/Pages/Monitor/View/Probes.tsx index 26a83452e9..b6ff11927d 100644 --- a/Dashboard/src/Pages/Monitor/View/Probes.tsx +++ b/Dashboard/src/Pages/Monitor/View/Probes.tsx @@ -33,9 +33,9 @@ import React, { } from "react"; import useAsyncEffect from "use-async-effect"; -const MonitorProbes: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorProbes: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); const [showViewLogsModal, setShowViewLogsModal] = useState(false); const [logs, setLogs] = useState(""); diff --git a/Dashboard/src/Pages/Monitor/View/Settings.tsx b/Dashboard/src/Pages/Monitor/View/Settings.tsx index 91c56f53d6..b5fbf41bbf 100644 --- a/Dashboard/src/Pages/Monitor/View/Settings.tsx +++ b/Dashboard/src/Pages/Monitor/View/Settings.tsx @@ -27,9 +27,9 @@ import React, { } from "react"; import useAsyncEffect from "use-async-effect"; -const MonitorCriteria: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorCriteria: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const [alertRefreshToggle, setAlertRefreshToggle] = useState(false); const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); diff --git a/Dashboard/src/Pages/MonitorGroup/View/Delete.tsx b/Dashboard/src/Pages/MonitorGroup/View/Delete.tsx index eb44c11117..9af1693d85 100644 --- a/Dashboard/src/Pages/MonitorGroup/View/Delete.tsx +++ b/Dashboard/src/Pages/MonitorGroup/View/Delete.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import MonitorGroup from "Model/Models/MonitorGroup"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const MonitorGroupDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorGroupDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/MonitorGroup/View/Incidents.tsx b/Dashboard/src/Pages/MonitorGroup/View/Incidents.tsx index 9cdb99a5d3..066c272d30 100644 --- a/Dashboard/src/Pages/MonitorGroup/View/Incidents.tsx +++ b/Dashboard/src/Pages/MonitorGroup/View/Incidents.tsx @@ -17,9 +17,9 @@ import React, { useEffect, } from "react"; -const MonitorIncidents: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorIncidents: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); const [isLoading, setIsLoading] = React.useState(true); diff --git a/Dashboard/src/Pages/MonitorGroup/View/Index.tsx b/Dashboard/src/Pages/MonitorGroup/View/Index.tsx index 83db144c96..4c6ff395a4 100644 --- a/Dashboard/src/Pages/MonitorGroup/View/Index.tsx +++ b/Dashboard/src/Pages/MonitorGroup/View/Index.tsx @@ -34,9 +34,9 @@ import React, { } from "react"; import useAsyncEffect from "use-async-effect"; -const MonitorGroupView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorGroupView: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); const [currentGroupStatus, setCurrentGroupStatus] = diff --git a/Dashboard/src/Pages/MonitorGroup/View/Layout.tsx b/Dashboard/src/Pages/MonitorGroup/View/Layout.tsx index 13c7e3aec3..fe4a969bf6 100644 --- a/Dashboard/src/Pages/MonitorGroup/View/Layout.tsx +++ b/Dashboard/src/Pages/MonitorGroup/View/Layout.tsx @@ -9,9 +9,9 @@ import MonitorGroup from "Model/Models/MonitorGroup"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const MonitorGroupViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorGroupViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/MonitorGroup/View/Owners.tsx b/Dashboard/src/Pages/MonitorGroup/View/Owners.tsx index bd76245143..457e03a2c3 100644 --- a/Dashboard/src/Pages/MonitorGroup/View/Owners.tsx +++ b/Dashboard/src/Pages/MonitorGroup/View/Owners.tsx @@ -15,9 +15,9 @@ import Team from "Model/Models/Team"; import User from "Model/Models/User"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const MonitorGroupOwners: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorGroupOwners: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/OnCallDuty/Layout.tsx b/Dashboard/src/Pages/OnCallDuty/Layout.tsx index ce366ce2f3..33f09d264d 100644 --- a/Dashboard/src/Pages/OnCallDuty/Layout.tsx +++ b/Dashboard/src/Pages/OnCallDuty/Layout.tsx @@ -18,9 +18,9 @@ const PageTitleMap: Dictionary = { "On-Call Duty Logs", }; -const OnCallDutyLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallDutyLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); const lastPath: string = RouteUtil.getLastPath(path); return ( diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyExecutionLogView.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyExecutionLogView.tsx index f6bb0d73f3..66627bd521 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyExecutionLogView.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyExecutionLogView.tsx @@ -4,9 +4,7 @@ import ObjectID from "Common/Types/ObjectID"; import Navigation from "CommonUI/src/Utils/Navigation"; import React, { FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ; diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyExecutionLogs.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyExecutionLogs.tsx index bd4f0ba3d5..05ef706b85 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyExecutionLogs.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyExecutionLogs.tsx @@ -2,9 +2,7 @@ import ExecutionLogsTable from "../../Components/OnCallPolicy/ExecutionLogs/Exec import PageComponentProps from "../PageComponentProps"; import React, { FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { return ; }; diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx index 5d4dc93c3f..62c643a7a1 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx @@ -11,9 +11,9 @@ import Label from "Model/Models/Label"; import OnCallDutyPolicy from "Model/Models/OnCallDutyPolicy"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const OnCallDutyPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallDutyPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallDutyPolicyCustomFields: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Delete.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Delete.tsx index e4cc78ddb6..719ca10800 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Delete.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Delete.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import OnCallDutyPolicy from "Model/Models/OnCallDutyPolicy"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const OnCallPolicyDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallPolicyDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/ExecutionLogView.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/ExecutionLogView.tsx index 38ccb0d7f5..30cd0e3fbd 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/ExecutionLogView.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/ExecutionLogView.tsx @@ -7,9 +7,7 @@ import ObjectID from "Common/Types/ObjectID"; import Navigation from "CommonUI/src/Utils/Navigation"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { const onCallDutyPolicyIdString: string | null = Navigation.getParamByName( RouteParams.ModelID, RouteMap[PageMap.ON_CALL_DUTY_POLICY_VIEW_EXECUTION_LOG_VIEW]!, diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/ExecutionLogs.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/ExecutionLogs.tsx index 9ef7f6382a..a26ae72a01 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/ExecutionLogs.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/ExecutionLogs.tsx @@ -8,9 +8,7 @@ import ObjectID from "Common/Types/ObjectID"; import Navigation from "CommonUI/src/Utils/Navigation"; import React, { FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { const modelId: ObjectID = new ObjectID( Navigation.getParamByName( RouteParams.ModelID, diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Index.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Index.tsx index 7204c57dca..d9e6662744 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Index.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Index.tsx @@ -9,9 +9,9 @@ import Label from "Model/Models/Label"; import OnCallDutyPolicy from "Model/Models/OnCallDutyPolicy"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const OnCallDutyPolicyView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallDutyPolicyView: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Layout.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Layout.tsx index 166cb99ec1..04b67e592e 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Layout.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Layout.tsx @@ -9,9 +9,9 @@ import OnCallDutyPolicy from "Model/Models/OnCallDutyPolicy"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const OnCallDutyPolicyViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallDutyPolicyViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Delete.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Delete.tsx index ac59329937..6b5e283a73 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Delete.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Delete.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import OnCallDutySchedule from "Model/Models/OnCallDutyPolicySchedule"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const OnCallScheduleDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallScheduleDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Index.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Index.tsx index a32eba00b7..637217b3ac 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Index.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Index.tsx @@ -9,9 +9,9 @@ import Label from "Model/Models/Label"; import OnCallDutySchedule from "Model/Models/OnCallDutyPolicySchedule"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const OnCallDutyScheduleView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallDutyScheduleView: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Layers.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Layers.tsx index 11233bb812..95c00902a2 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Layers.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Layers.tsx @@ -7,9 +7,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import ProjectUtil from "CommonUI/src/Utils/Project"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const OnCallScheduleDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallScheduleDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Layout.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Layout.tsx index f8b331a99a..ddf52414e7 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Layout.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedule/Layout.tsx @@ -9,9 +9,9 @@ import OnCallDutySchedule from "Model/Models/OnCallDutyPolicySchedule"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const OnCallDutyScheduleViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallDutyScheduleViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx index c0038539a1..d31e4697d2 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx @@ -9,9 +9,9 @@ import Label from "Model/Models/Label"; import OnCallDutySchedule from "Model/Models/OnCallDutyPolicySchedule"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const OnCallDutyPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const OnCallDutyPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Onboarding/SSO.tsx b/Dashboard/src/Pages/Onboarding/SSO.tsx index c91185bf3e..e3f28aa3c7 100644 --- a/Dashboard/src/Pages/Onboarding/SSO.tsx +++ b/Dashboard/src/Pages/Onboarding/SSO.tsx @@ -11,9 +11,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import ProjectSSO from "Model/Models/ProjectSso"; import React, { FunctionComponent, ReactElement, useState } from "react"; -const SSO: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const SSO: FunctionComponent = (): ReactElement => { const [isLoading, setIsLoading] = useState(false); return ( diff --git a/Dashboard/src/Pages/PageNotFound/PageNotFound.tsx b/Dashboard/src/Pages/PageNotFound/PageNotFound.tsx index 222e131ca1..b030890848 100644 --- a/Dashboard/src/Pages/PageNotFound/PageNotFound.tsx +++ b/Dashboard/src/Pages/PageNotFound/PageNotFound.tsx @@ -6,9 +6,9 @@ import NotFound from "CommonUI/src/Components/404"; import Page from "CommonUI/src/Components/Page/Page"; import React, { FunctionComponent, ReactElement } from "react"; -const PageNotFound: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const PageNotFound: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const IncidentDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Index.tsx b/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Index.tsx index 9884103f4b..0b15df05ae 100644 --- a/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Index.tsx +++ b/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Index.tsx @@ -25,9 +25,9 @@ import ScheduledMaintenanceStateTimeline from "Model/Models/ScheduledMaintenance import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ScheduledMaintenanceView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ScheduledMaintenanceView: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Layout.tsx b/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Layout.tsx index db311e6ba6..b48b02d0bb 100644 --- a/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Layout.tsx +++ b/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Layout.tsx @@ -9,9 +9,9 @@ import ScheduledMaintenance from "Model/Models/ScheduledMaintenance"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const ScheduledMaintenanceViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ScheduledMaintenanceViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Owners.tsx b/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Owners.tsx index 8b99e3ee4d..ad596074d3 100644 --- a/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Owners.tsx +++ b/Dashboard/src/Pages/ScheduledMaintenanceEvents/View/Owners.tsx @@ -15,9 +15,9 @@ import Team from "Model/Models/Team"; import User from "Model/Models/User"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ScheduledMaintenanceOwners: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ScheduledMaintenanceOwners: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx b/Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx index c6b5d1eaab..f1165ce083 100644 --- a/Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx +++ b/Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx @@ -16,9 +16,9 @@ import Label from "Model/Models/Label"; import ServiceCatalog from "Model/Models/ServiceCatalog"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceCatalogPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceCatalogPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceCatalogDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/ServiceCatalog/View/Index.tsx b/Dashboard/src/Pages/ServiceCatalog/View/Index.tsx index a88f5f5df1..44bccc42e9 100644 --- a/Dashboard/src/Pages/ServiceCatalog/View/Index.tsx +++ b/Dashboard/src/Pages/ServiceCatalog/View/Index.tsx @@ -11,9 +11,9 @@ import Label from "Model/Models/Label"; import ServiceCatalog from "Model/Models/ServiceCatalog"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageView: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/ServiceCatalog/View/Layout.tsx b/Dashboard/src/Pages/ServiceCatalog/View/Layout.tsx index e05a157e02..0f885bed8b 100644 --- a/Dashboard/src/Pages/ServiceCatalog/View/Layout.tsx +++ b/Dashboard/src/Pages/ServiceCatalog/View/Layout.tsx @@ -9,9 +9,9 @@ import ServiceCatalog from "Model/Models/ServiceCatalog"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const ServiceCatalogViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceCatalogViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/ServiceCatalog/View/Owners.tsx b/Dashboard/src/Pages/ServiceCatalog/View/Owners.tsx index 33db866a39..715c0c7e76 100644 --- a/Dashboard/src/Pages/ServiceCatalog/View/Owners.tsx +++ b/Dashboard/src/Pages/ServiceCatalog/View/Owners.tsx @@ -15,9 +15,9 @@ import Team from "Model/Models/Team"; import User from "Model/Models/User"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceCatalogOwners: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceCatalogOwners: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/ServiceCatalog/View/Settings.tsx b/Dashboard/src/Pages/ServiceCatalog/View/Settings.tsx index f8248472a9..8b56f9d405 100644 --- a/Dashboard/src/Pages/ServiceCatalog/View/Settings.tsx +++ b/Dashboard/src/Pages/ServiceCatalog/View/Settings.tsx @@ -7,9 +7,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import ServiceCatalog from "Model/Models/ServiceCatalog"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Settings/APIKeys.tsx b/Dashboard/src/Pages/Settings/APIKeys.tsx index f2239ea28c..746da51ec0 100644 --- a/Dashboard/src/Pages/Settings/APIKeys.tsx +++ b/Dashboard/src/Pages/Settings/APIKeys.tsx @@ -7,9 +7,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import ApiKey from "Model/Models/ApiKey"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const APIKeys: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const APIKeys: FunctionComponent = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Settings/CallLog.tsx b/Dashboard/src/Pages/Settings/CallLog.tsx index f1797a4c59..ac8cd674eb 100644 --- a/Dashboard/src/Pages/Settings/CallLog.tsx +++ b/Dashboard/src/Pages/Settings/CallLog.tsx @@ -22,9 +22,7 @@ import React, { useState, } from "react"; -const CallLogs: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const CallLogs: FunctionComponent = (): ReactElement => { const [showViewCallTextModal, setShowViewCallTextModal] = useState(false); const [callText, setCallText] = useState(""); diff --git a/Dashboard/src/Pages/Settings/Domains.tsx b/Dashboard/src/Pages/Settings/Domains.tsx index e9f9d78e6b..543616d39d 100644 --- a/Dashboard/src/Pages/Settings/Domains.tsx +++ b/Dashboard/src/Pages/Settings/Domains.tsx @@ -20,9 +20,7 @@ import React, { useState, } from "react"; -const Domains: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Domains: FunctionComponent = (): ReactElement => { const [showVerificationModal, setShowVerificationModal] = useState(false); const [error, setError] = useState(""); diff --git a/Dashboard/src/Pages/Settings/EmailLog.tsx b/Dashboard/src/Pages/Settings/EmailLog.tsx index aca9b47c4e..c39999311d 100644 --- a/Dashboard/src/Pages/Settings/EmailLog.tsx +++ b/Dashboard/src/Pages/Settings/EmailLog.tsx @@ -21,9 +21,7 @@ import React, { useState, } from "react"; -const EmailLogs: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const EmailLogs: FunctionComponent = (): ReactElement => { const [showViewEmailTextModal, setShowViewEmailTextModal] = useState(false); const [EmailText, setEmailText] = useState(""); diff --git a/Dashboard/src/Pages/Settings/FeatureFlags.tsx b/Dashboard/src/Pages/Settings/FeatureFlags.tsx index feff013e7e..c2d61880f7 100644 --- a/Dashboard/src/Pages/Settings/FeatureFlags.tsx +++ b/Dashboard/src/Pages/Settings/FeatureFlags.tsx @@ -7,9 +7,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import Project from "Model/Models/Project"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { return ( {/* Project Settings View */} diff --git a/Dashboard/src/Pages/Settings/IncidentNoteTemplateView.tsx b/Dashboard/src/Pages/Settings/IncidentNoteTemplateView.tsx index 0857b52aad..822668f6c3 100644 --- a/Dashboard/src/Pages/Settings/IncidentNoteTemplateView.tsx +++ b/Dashboard/src/Pages/Settings/IncidentNoteTemplateView.tsx @@ -11,9 +11,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import IncidentNoteTemplate from "Model/Models/IncidentNoteTemplate"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const TeamView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const TeamView: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/Settings/IncidentSeverity.tsx b/Dashboard/src/Pages/Settings/IncidentSeverity.tsx index 7339066407..49194d91e8 100644 --- a/Dashboard/src/Pages/Settings/IncidentSeverity.tsx +++ b/Dashboard/src/Pages/Settings/IncidentSeverity.tsx @@ -10,9 +10,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import IncidentSeverity from "Model/Models/IncidentSeverity"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const IncidentSeverityPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const IncidentSeverityPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Settings/IncidentState.tsx b/Dashboard/src/Pages/Settings/IncidentState.tsx index 7ff92b3946..dd2516c08d 100644 --- a/Dashboard/src/Pages/Settings/IncidentState.tsx +++ b/Dashboard/src/Pages/Settings/IncidentState.tsx @@ -11,9 +11,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import IncidentState from "Model/Models/IncidentState"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const IncidentsPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const IncidentsPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Settings/IncidentTemplatesView.tsx b/Dashboard/src/Pages/Settings/IncidentTemplatesView.tsx index 88d93db4c9..9219e7b71b 100644 --- a/Dashboard/src/Pages/Settings/IncidentTemplatesView.tsx +++ b/Dashboard/src/Pages/Settings/IncidentTemplatesView.tsx @@ -31,9 +31,7 @@ import Team from "Model/Models/Team"; import User from "Model/Models/User"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const TeamView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const TeamView: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/Settings/Labels.tsx b/Dashboard/src/Pages/Settings/Labels.tsx index f846b32063..385dd00628 100644 --- a/Dashboard/src/Pages/Settings/Labels.tsx +++ b/Dashboard/src/Pages/Settings/Labels.tsx @@ -9,9 +9,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import Label from "Model/Models/Label"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Labels: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Labels: FunctionComponent = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Settings/Layout.tsx b/Dashboard/src/Pages/Settings/Layout.tsx index 9af0e30cb6..0e587014b7 100644 --- a/Dashboard/src/Pages/Settings/Layout.tsx +++ b/Dashboard/src/Pages/Settings/Layout.tsx @@ -7,9 +7,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet } from "react-router-dom"; -const SettingsLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const SettingsLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); return ( = ( - _props: PageComponentProps, -): ReactElement => { +const MonitorSecrets: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const [currentlyEditingItem, setCurrentlyEditingItem] = useState(null); diff --git a/Dashboard/src/Pages/Settings/NotificationSettings.tsx b/Dashboard/src/Pages/Settings/NotificationSettings.tsx index 96525b05f2..c0a31315e7 100644 --- a/Dashboard/src/Pages/Settings/NotificationSettings.tsx +++ b/Dashboard/src/Pages/Settings/NotificationSettings.tsx @@ -22,9 +22,7 @@ import React, { useState, } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { const [showRechargeBalanceModal, setShowRechargeBalanceModal] = useState(false); const [isRechargeBalanceLoading, setIsRechargeBalanceLoading] = diff --git a/Dashboard/src/Pages/Settings/Probes.tsx b/Dashboard/src/Pages/Settings/Probes.tsx index 2d53a04ce8..c3b524efb8 100644 --- a/Dashboard/src/Pages/Settings/Probes.tsx +++ b/Dashboard/src/Pages/Settings/Probes.tsx @@ -24,9 +24,7 @@ import React, { useState, } from "react"; -const ProbePage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ProbePage: FunctionComponent = (): ReactElement => { const [showKeyModal, setShowKeyModal] = useState(false); const [currentProbe, setCurrentProbe] = useState(null); diff --git a/Dashboard/src/Pages/Settings/ProjectSettings.tsx b/Dashboard/src/Pages/Settings/ProjectSettings.tsx index 6bcc49b42a..7b1b0a66cc 100644 --- a/Dashboard/src/Pages/Settings/ProjectSettings.tsx +++ b/Dashboard/src/Pages/Settings/ProjectSettings.tsx @@ -6,9 +6,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import Project from "Model/Models/Project"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { return ( {/* Project Settings View */} diff --git a/Dashboard/src/Pages/Settings/ScheduledMaintenanceNoteTemplateView.tsx b/Dashboard/src/Pages/Settings/ScheduledMaintenanceNoteTemplateView.tsx index 10b4c8ef64..86776a139d 100644 --- a/Dashboard/src/Pages/Settings/ScheduledMaintenanceNoteTemplateView.tsx +++ b/Dashboard/src/Pages/Settings/ScheduledMaintenanceNoteTemplateView.tsx @@ -11,9 +11,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import ScheduledMaintenanceNoteTemplate from "Model/Models/ScheduledMaintenanceNoteTemplate"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const TeamView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const TeamView: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/Settings/ScheduledMaintenanceState.tsx b/Dashboard/src/Pages/Settings/ScheduledMaintenanceState.tsx index 7270375c46..20e6135466 100644 --- a/Dashboard/src/Pages/Settings/ScheduledMaintenanceState.tsx +++ b/Dashboard/src/Pages/Settings/ScheduledMaintenanceState.tsx @@ -11,9 +11,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import ScheduledMaintenanceState from "Model/Models/ScheduledMaintenanceState"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ScheduledMaintenancesPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ScheduledMaintenancesPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Settings/SmsLog.tsx b/Dashboard/src/Pages/Settings/SmsLog.tsx index 3944b90c48..c4702a12de 100644 --- a/Dashboard/src/Pages/Settings/SmsLog.tsx +++ b/Dashboard/src/Pages/Settings/SmsLog.tsx @@ -21,9 +21,7 @@ import React, { useState, } from "react"; -const SMSLogs: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const SMSLogs: FunctionComponent = (): ReactElement => { const [showViewSmsTextModal, setShowViewSmsTextModal] = useState(false); const [smsText, setSmsText] = useState(""); diff --git a/Dashboard/src/Pages/StatusPages/StatusPages.tsx b/Dashboard/src/Pages/StatusPages/StatusPages.tsx index ace2b1a9db..c645d0877a 100644 --- a/Dashboard/src/Pages/StatusPages/StatusPages.tsx +++ b/Dashboard/src/Pages/StatusPages/StatusPages.tsx @@ -15,9 +15,7 @@ import Label from "Model/Models/Label"; import StatusPage from "Model/Models/StatusPage"; import React, { FunctionComponent, ReactElement } from "react"; -const StatusPages: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPages: FunctionComponent = (): ReactElement => { return ( = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/AuthenticationSettings.tsx b/Dashboard/src/Pages/StatusPages/View/AuthenticationSettings.tsx index b0c795ab17..9cbd4033fc 100644 --- a/Dashboard/src/Pages/StatusPages/View/AuthenticationSettings.tsx +++ b/Dashboard/src/Pages/StatusPages/View/AuthenticationSettings.tsx @@ -7,9 +7,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/Branding.tsx b/Dashboard/src/Pages/StatusPages/View/Branding.tsx index c46f48321c..01fee2e93e 100644 --- a/Dashboard/src/Pages/StatusPages/View/Branding.tsx +++ b/Dashboard/src/Pages/StatusPages/View/Branding.tsx @@ -7,9 +7,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/CustomFields.tsx b/Dashboard/src/Pages/StatusPages/View/CustomFields.tsx index c66a6648ed..cc17993bf9 100644 --- a/Dashboard/src/Pages/StatusPages/View/CustomFields.tsx +++ b/Dashboard/src/Pages/StatusPages/View/CustomFields.tsx @@ -7,9 +7,9 @@ import StatusPage from "Model/Models/StatusPage"; import StatusPageCustomField from "Model/Models/StatusPageCustomField"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageCustomFields: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageCustomFields: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/CustomHtmlCss.tsx b/Dashboard/src/Pages/StatusPages/View/CustomHtmlCss.tsx index 5ce67ce01b..9d1eab979b 100644 --- a/Dashboard/src/Pages/StatusPages/View/CustomHtmlCss.tsx +++ b/Dashboard/src/Pages/StatusPages/View/CustomHtmlCss.tsx @@ -7,9 +7,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/Delete.tsx b/Dashboard/src/Pages/StatusPages/View/Delete.tsx index 88ce9db796..61de542876 100644 --- a/Dashboard/src/Pages/StatusPages/View/Delete.tsx +++ b/Dashboard/src/Pages/StatusPages/View/Delete.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/Embedded.tsx b/Dashboard/src/Pages/StatusPages/View/Embedded.tsx index 88ce9db796..61de542876 100644 --- a/Dashboard/src/Pages/StatusPages/View/Embedded.tsx +++ b/Dashboard/src/Pages/StatusPages/View/Embedded.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/Index.tsx b/Dashboard/src/Pages/StatusPages/View/Index.tsx index e5af76cfa3..074e2b944b 100644 --- a/Dashboard/src/Pages/StatusPages/View/Index.tsx +++ b/Dashboard/src/Pages/StatusPages/View/Index.tsx @@ -10,9 +10,9 @@ import Label from "Model/Models/Label"; import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageView: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/Layout.tsx b/Dashboard/src/Pages/StatusPages/View/Layout.tsx index b28f78c91b..aa0dd0e8f3 100644 --- a/Dashboard/src/Pages/StatusPages/View/Layout.tsx +++ b/Dashboard/src/Pages/StatusPages/View/Layout.tsx @@ -9,9 +9,9 @@ import StatusPage from "Model/Models/StatusPage"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const StatusPageViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/StatusPages/View/NavBarStyle.tsx b/Dashboard/src/Pages/StatusPages/View/NavBarStyle.tsx index c84a981823..ee36b29a3c 100644 --- a/Dashboard/src/Pages/StatusPages/View/NavBarStyle.tsx +++ b/Dashboard/src/Pages/StatusPages/View/NavBarStyle.tsx @@ -1,9 +1,9 @@ import PageComponentProps from "../../PageComponentProps"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( <> diff --git a/Dashboard/src/Pages/StatusPages/View/Owners.tsx b/Dashboard/src/Pages/StatusPages/View/Owners.tsx index 742ab77426..bf347f8962 100644 --- a/Dashboard/src/Pages/StatusPages/View/Owners.tsx +++ b/Dashboard/src/Pages/StatusPages/View/Owners.tsx @@ -15,9 +15,9 @@ import Team from "Model/Models/Team"; import User from "Model/Models/User"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageOwners: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageOwners: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/PrivateUser.tsx b/Dashboard/src/Pages/StatusPages/View/PrivateUser.tsx index 77f5a2d13e..12d14bcf37 100644 --- a/Dashboard/src/Pages/StatusPages/View/PrivateUser.tsx +++ b/Dashboard/src/Pages/StatusPages/View/PrivateUser.tsx @@ -10,9 +10,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import StatusPagePrivateUser from "Model/Models/StatusPagePrivateUser"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/StatusPageSettings.tsx b/Dashboard/src/Pages/StatusPages/View/StatusPageSettings.tsx index 2d6ae1a59d..1b6b8a564b 100644 --- a/Dashboard/src/Pages/StatusPages/View/StatusPageSettings.tsx +++ b/Dashboard/src/Pages/StatusPages/View/StatusPageSettings.tsx @@ -7,9 +7,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/StatusPages/View/SubscriberSettings.tsx b/Dashboard/src/Pages/StatusPages/View/SubscriberSettings.tsx index 5210b7b974..686c29a635 100644 --- a/Dashboard/src/Pages/StatusPages/View/SubscriberSettings.tsx +++ b/Dashboard/src/Pages/StatusPages/View/SubscriberSettings.tsx @@ -12,9 +12,9 @@ import ProjectSmtpConfig from "Model/Models/ProjectSmtpConfig"; import StatusPage from "Model/Models/StatusPage"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const StatusPageDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const StatusPageDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Dashboard/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Dashboard/Index.tsx index c064bde316..562dcd428c 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Dashboard/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Dashboard/Index.tsx @@ -2,9 +2,9 @@ import PageComponentProps from "../../../../PageComponentProps"; import ComingSoon from "CommonUI/src/Components/ComingSoon/ComingSoon"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Delete.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Delete.tsx index 0a8adc7aa6..9441ae238f 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Delete.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Delete.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import TelemetryService from "Model/Models/TelemetryService"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Documentation.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Documentation.tsx index da9d93ca47..49a9d845dd 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Documentation.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Documentation.tsx @@ -2,9 +2,9 @@ import TelemetryDocumentation from "../../../../Components/Telemetry/Documentati import PageComponentProps from "../../../PageComponentProps"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const TelemetryDocumentationPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const TelemetryDocumentationPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Index.tsx index e3b178c886..3164c7cce1 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Index.tsx @@ -9,9 +9,9 @@ import Label from "Model/Models/Label"; import TelemetryService from "Model/Models/TelemetryService"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(0); return ( diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Layout.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Layout.tsx index 45c6e83c46..8f812d98c6 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Layout.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Layout.tsx @@ -9,9 +9,9 @@ import TelemetryService from "Model/Models/TelemetryService"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const TelemetryServiceViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const TelemetryServiceViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Logs/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Logs/Index.tsx index 16760697a1..8da653890d 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Logs/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Logs/Index.tsx @@ -4,9 +4,9 @@ import ObjectID from "Common/Types/ObjectID"; import Navigation from "CommonUI/src/Utils/Navigation"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Metrics/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Metrics/Index.tsx index 683b545a01..af29f57e03 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Metrics/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Metrics/Index.tsx @@ -9,9 +9,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import Metric from "Model/AnalyticsModels/Metric"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Metrics/View/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Metrics/View/Index.tsx index cc8edf879c..08073843ce 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Metrics/View/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Metrics/View/Index.tsx @@ -4,9 +4,9 @@ import ObjectID from "Common/Types/ObjectID"; import Navigation from "CommonUI/src/Utils/Navigation"; import React, { FunctionComponent, ReactElement } from "react"; -const MetricViewPage: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const MetricViewPage: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const metricName: string = Navigation.getLastParamAsString(); const serviceId: ObjectID = Navigation.getLastParamAsObjectID(2); diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx index 468c501a50..a99a05abef 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx @@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import TelemetryService from "Model/Models/TelemetryService"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const ServiceDelete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const ServiceDelete: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Traces/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Traces/Index.tsx index 32404e9f0e..f349725cd7 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Traces/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Traces/Index.tsx @@ -11,9 +11,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import Span, { SpanKind, SpanStatus } from "Model/AnalyticsModels/Span"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const TracesList: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const TracesList: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); const spanKindDropdownOptions: Array = diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx index f09914d5a5..acf53cac59 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx @@ -45,9 +45,7 @@ type BarTooltipFunctionProps = { type GetBarTooltipFunction = (data: BarTooltipFunctionProps) => ReactElement; -const TraceView: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const TraceView: FunctionComponent = (): ReactElement => { const [telemetryServices, setTelemetryServices] = React.useState< TelemetryService[] >([]); diff --git a/Dashboard/src/Pages/UserSettings/NotificationMethods.tsx b/Dashboard/src/Pages/UserSettings/NotificationMethods.tsx index 8f4cf3ab72..9679fc8616 100644 --- a/Dashboard/src/Pages/UserSettings/NotificationMethods.tsx +++ b/Dashboard/src/Pages/UserSettings/NotificationMethods.tsx @@ -4,9 +4,7 @@ import UserSMS from "../../Components/NotificationMethods/SMS"; import PageComponentProps from "../PageComponentProps"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/UserSettings/NotificationSettings.tsx b/Dashboard/src/Pages/UserSettings/NotificationSettings.tsx index 596d047a0c..570ef17080 100644 --- a/Dashboard/src/Pages/UserSettings/NotificationSettings.tsx +++ b/Dashboard/src/Pages/UserSettings/NotificationSettings.tsx @@ -9,9 +9,7 @@ import User from "CommonUI/src/Utils/User"; import UserNotificationSetting from "Model/Models/UserNotificationSetting"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { type GetModelTableFunctionProps = { eventOptions: Array; title: string; diff --git a/Dashboard/src/Pages/UserSettings/OnCallLogs.tsx b/Dashboard/src/Pages/UserSettings/OnCallLogs.tsx index 3a2f9053ba..82417fcb00 100644 --- a/Dashboard/src/Pages/UserSettings/OnCallLogs.tsx +++ b/Dashboard/src/Pages/UserSettings/OnCallLogs.tsx @@ -23,9 +23,7 @@ import React, { useState, } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { const [showViewStatusMessageModal, setShowViewStatusMessageModal] = useState(false); const [statusMessage, setStatusMessage] = useState(""); diff --git a/Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx b/Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx index 8485317b89..11586bf0f2 100644 --- a/Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx +++ b/Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx @@ -22,9 +22,7 @@ import React, { useState, } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(); const [showViewStatusMessageModal, setShowViewStatusMessageModal] = diff --git a/Dashboard/src/Pages/UserSettings/OnCallRules.tsx b/Dashboard/src/Pages/UserSettings/OnCallRules.tsx index 7925e966b8..4f714f59b1 100644 --- a/Dashboard/src/Pages/UserSettings/OnCallRules.tsx +++ b/Dashboard/src/Pages/UserSettings/OnCallRules.tsx @@ -30,9 +30,7 @@ import React, { useState, } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { const [error, setError] = useState(""); const [isLoading, setIsLoading] = useState(true); const [incidentSeverities, setIncidentSeverities] = useState< diff --git a/Dashboard/src/Pages/Workflow/Layout.tsx b/Dashboard/src/Pages/Workflow/Layout.tsx index 6cc304777d..0ac918773b 100644 --- a/Dashboard/src/Pages/Workflow/Layout.tsx +++ b/Dashboard/src/Pages/Workflow/Layout.tsx @@ -7,9 +7,9 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet } from "react-router-dom"; -const WorkflowsLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const WorkflowsLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); return ( = ( - _props: PageComponentProps, -): ReactElement => { +const Workflows: FunctionComponent = (): ReactElement => { const [showViewLogsModal, setShowViewLogsModal] = useState(false); const [logs, setLogs] = useState(""); diff --git a/Dashboard/src/Pages/Workflow/Variable.tsx b/Dashboard/src/Pages/Workflow/Variable.tsx index 0aee5d64ef..c150fb16aa 100644 --- a/Dashboard/src/Pages/Workflow/Variable.tsx +++ b/Dashboard/src/Pages/Workflow/Variable.tsx @@ -6,9 +6,7 @@ import FieldType from "CommonUI/src/Components/Types/FieldType"; import WorkflowVariable from "Model/Models/WorkflowVariable"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Workflows: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Workflows: FunctionComponent = (): ReactElement => { return ( diff --git a/Dashboard/src/Pages/Workflow/View/Builder.tsx b/Dashboard/src/Pages/Workflow/View/Builder.tsx index 4a83bf3a82..924e4fe463 100644 --- a/Dashboard/src/Pages/Workflow/View/Builder.tsx +++ b/Dashboard/src/Pages/Workflow/View/Builder.tsx @@ -36,9 +36,7 @@ import React, { import { Edge, Node } from "reactflow"; import { useAsyncEffect } from "use-async-effect"; -const Delete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Delete: FunctionComponent = (): ReactElement => { const [isLoading, setIsLoading] = useState(true); const [saveStatus, setSaveStatus] = useState(""); const [saveTimeout, setSaveTimeout] = useState = ( - _props: PageComponentProps, -): ReactElement => { +const Delete: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Workflow/View/Index.tsx b/Dashboard/src/Pages/Workflow/View/Index.tsx index 58a9bf19d6..4439c588ec 100644 --- a/Dashboard/src/Pages/Workflow/View/Index.tsx +++ b/Dashboard/src/Pages/Workflow/View/Index.tsx @@ -9,9 +9,7 @@ import Label from "Model/Models/Label"; import Workflow from "Model/Models/Workflow"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Delete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Delete: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(0); return ( diff --git a/Dashboard/src/Pages/Workflow/View/Layout.tsx b/Dashboard/src/Pages/Workflow/View/Layout.tsx index 4557cce91a..c7c1cb56bb 100644 --- a/Dashboard/src/Pages/Workflow/View/Layout.tsx +++ b/Dashboard/src/Pages/Workflow/View/Layout.tsx @@ -9,9 +9,9 @@ import Workflow from "Model/Models/Workflow"; import React, { FunctionComponent, ReactElement } from "react"; import { Outlet, useParams } from "react-router-dom"; -const WorkflowViewLayout: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const WorkflowViewLayout: FunctionComponent< + PageComponentProps +> = (): ReactElement => { const { id } = useParams(); const modelId: ObjectID = new ObjectID(id || ""); const path: string = Navigation.getRoutePath(RouteUtil.getRoutes()); diff --git a/Dashboard/src/Pages/Workflow/View/Logs.tsx b/Dashboard/src/Pages/Workflow/View/Logs.tsx index d06d8d4edb..9f2d1acdb8 100644 --- a/Dashboard/src/Pages/Workflow/View/Logs.tsx +++ b/Dashboard/src/Pages/Workflow/View/Logs.tsx @@ -20,9 +20,7 @@ import React, { useState, } from "react"; -const Delete: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Delete: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); const [showViewLogsModal, setShowViewLogsModal] = useState(false); diff --git a/Dashboard/src/Pages/Workflow/View/Settings.tsx b/Dashboard/src/Pages/Workflow/View/Settings.tsx index 0ec20a0f92..adecfd74b4 100644 --- a/Dashboard/src/Pages/Workflow/View/Settings.tsx +++ b/Dashboard/src/Pages/Workflow/View/Settings.tsx @@ -9,9 +9,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import Workflow from "Model/Models/Workflow"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Settings: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Settings: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Workflow/View/Variable.tsx b/Dashboard/src/Pages/Workflow/View/Variable.tsx index bd6eeedbd1..3e78f9b8f1 100644 --- a/Dashboard/src/Pages/Workflow/View/Variable.tsx +++ b/Dashboard/src/Pages/Workflow/View/Variable.tsx @@ -8,9 +8,7 @@ import Navigation from "CommonUI/src/Utils/Navigation"; import WorkflowVariable from "Model/Models/WorkflowVariable"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Workflows: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Workflows: FunctionComponent = (): ReactElement => { const modelId: ObjectID = Navigation.getLastParamAsObjectID(1); return ( diff --git a/Dashboard/src/Pages/Workflow/Workflows.tsx b/Dashboard/src/Pages/Workflow/Workflows.tsx index 88a8049c07..c78c6b7b82 100644 --- a/Dashboard/src/Pages/Workflow/Workflows.tsx +++ b/Dashboard/src/Pages/Workflow/Workflows.tsx @@ -18,9 +18,7 @@ import Workflow from "Model/Models/Workflow"; import WorkflowLog from "Model/Models/WorkflowLog"; import React, { Fragment, FunctionComponent, ReactElement } from "react"; -const Workflows: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const Workflows: FunctionComponent = (): ReactElement => { const startDate: Date = OneUptimeDate.getSomeDaysAgo(30); const endDate: Date = OneUptimeDate.getCurrentDate(); const plan: PlanSelect | null = ProjectUtil.getCurrentPlan(); diff --git a/StatusPage/src/Pages/NotFound/PageNotFound.tsx b/StatusPage/src/Pages/NotFound/PageNotFound.tsx index b7bc249b5a..ec91638ec1 100644 --- a/StatusPage/src/Pages/NotFound/PageNotFound.tsx +++ b/StatusPage/src/Pages/NotFound/PageNotFound.tsx @@ -4,9 +4,9 @@ import IconProp from "Common/Types/Icon/IconProp"; import EmptyState from "CommonUI/src/Components/EmptyState/EmptyState"; import React, { FunctionComponent, ReactElement } from "react"; -const PageNotFound: FunctionComponent = ( - _props: PageComponentProps, -): ReactElement => { +const PageNotFound: FunctionComponent< + PageComponentProps +> = (): ReactElement => { return ( = ( item.statusPageId = id; return item; }} - onSuccess={(_value: StatusPagePrivateUser) => { + onSuccess={() => { setIsSuccess(true); }} maxPrimaryButtonWidth={true} diff --git a/StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx b/StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx index 5017127466..0a186bb799 100644 --- a/StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx +++ b/StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx @@ -23,7 +23,6 @@ import FormValues from "CommonUI/src/Components/Forms/Types/FormValues"; import PageLoader from "CommonUI/src/Components/Loader/PageLoader"; import LocalStorage from "CommonUI/src/Utils/LocalStorage"; import SubscriberUtil from "CommonUI/src/Utils/StatusPage"; -import StatusPagePrivateUser from "Model/Models/StatusPagePrivateUser"; import StatusPageSubscriber from "Model/Models/StatusPageSubscriber"; import React, { FunctionComponent, @@ -199,7 +198,7 @@ const SubscribePage: FunctionComponent = ( item.statusPageId = id; return item; }} - onSuccess={(_value: StatusPagePrivateUser) => { + onSuccess={() => { setIsSuccess(true); }} maxPrimaryButtonWidth={true} diff --git a/StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx b/StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx index 18342dc539..ca296c7ddf 100644 --- a/StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx +++ b/StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx @@ -20,7 +20,6 @@ import PageLoader from "CommonUI/src/Components/Loader/PageLoader"; import LocalStorage from "CommonUI/src/Utils/LocalStorage"; import Navigation from "CommonUI/src/Utils/Navigation"; import SubscriberUtil from "CommonUI/src/Utils/StatusPage"; -import StatusPagePrivateUser from "Model/Models/StatusPagePrivateUser"; import StatusPageSubscriber from "Model/Models/StatusPageSubscriber"; import React, { FunctionComponent, @@ -217,7 +216,7 @@ const SubscribePage: FunctionComponent = ( formType={FormType.Update} modelIdToEdit={new ObjectID(statusPageSubscriberId)} submitButtonText={"Update Subscription"} - onSuccess={(_value: StatusPagePrivateUser) => { + onSuccess={() => { setIsSuccess(true); }} maxPrimaryButtonWidth={true} diff --git a/eslint.config.js b/eslint.config.js index 32ab63ef4d..8d8704c9a6 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -9,6 +9,7 @@ export default tseslint.config( "**/node_modules/", "**/dist/", "**/build/", + "**/assets/", "**/out/", "**/coverage/", "**/lib/", @@ -18,9 +19,10 @@ export default tseslint.config( "**/playwright-coverage/", "**/playwright-screenshots/", "**/playwright-videos", + "webpack.config.js", ], }, eslint.configs.recommended, - ...tseslint.configs.strict, + ...tseslint.configs.recommended, eslintPluginPrettierRecommended, );