mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 06:40:39 +00:00
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files
This commit is contained in:
parent
70a2a3993b
commit
1498656a43
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const CodeRepositoryDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageView: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const CodeRepositoryViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceRepositoryPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const codeRepositoryId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const CodeRepositoryPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Page
|
||||
title={"AI Copilot"}
|
||||
|
@ -13,9 +13,7 @@ import { RequestOptions } from "CommonUI/src/Utils/ModelAPI/ModelAPI";
|
||||
import Incident from "Model/Models/Incident";
|
||||
import React, { FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const Home: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Home: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Page
|
||||
title={"New Incidents"}
|
||||
|
@ -17,9 +17,7 @@ import User from "CommonUI/src/Utils/User";
|
||||
import TeamMember from "Model/Models/TeamMember";
|
||||
import React, { FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const Home: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Home: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Page
|
||||
title={"Project Invitations"}
|
||||
|
@ -12,9 +12,7 @@ import UserUtil from "CommonUI/src/Utils/User";
|
||||
import User from "Model/Models/User";
|
||||
import React, { FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const Home: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Home: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Page
|
||||
title={"User Profile"}
|
||||
|
@ -16,9 +16,7 @@ class UserWithConfirmPassword extends User {
|
||||
public confirmPassword: string = "";
|
||||
}
|
||||
|
||||
const Home: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Home: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [hasPasswordChanged, setHasPasswordChanged] = useState<boolean>(false);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Home: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Page
|
||||
title={"User Profile"}
|
||||
|
@ -7,9 +7,9 @@ import Incident from "Model/Models/Incident";
|
||||
import IncidentCustomField from "Model/Models/IncidentCustomField";
|
||||
import React, { FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const IncidentCustomFields: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const IncidentCustomFields: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const IncidentDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -40,9 +40,9 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
const IncidentView: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const IncidentView: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
const [incidentStateTimeline, setIncidentStateTimeline] = useState<
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const IncidentViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const IncidentOwners: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Logout: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [error, setError] = React.useState<string | null>(null);
|
||||
|
||||
useAsyncEffect(async () => {
|
||||
|
@ -31,9 +31,9 @@ import React, {
|
||||
} from "react";
|
||||
import { useAsyncEffect } from "use-async-effect";
|
||||
|
||||
const MonitorCriteria: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorCriteria: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorCustomFields: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -19,9 +19,9 @@ import React, {
|
||||
} from "react";
|
||||
import useAsyncEffect from "use-async-effect";
|
||||
|
||||
const MonitorDocumentation: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorDocumentation: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
const [error, setError] = useState<string>("");
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorIncidents: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -61,9 +61,7 @@ import React, {
|
||||
} from "react";
|
||||
import useAsyncEffect from "use-async-effect";
|
||||
|
||||
const MonitorView: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorView: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
const [statusTimelines, setStatusTimelines] = useState<
|
||||
|
@ -24,9 +24,9 @@ import React, {
|
||||
} from "react";
|
||||
import useAsyncEffect from "use-async-effect";
|
||||
|
||||
const MonitorCriteria: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorCriteria: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorOwners: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -33,9 +33,9 @@ import React, {
|
||||
} from "react";
|
||||
import useAsyncEffect from "use-async-effect";
|
||||
|
||||
const MonitorProbes: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorProbes: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
const [showViewLogsModal, setShowViewLogsModal] = useState<boolean>(false);
|
||||
const [logs, setLogs] = useState<string>("");
|
||||
|
@ -27,9 +27,9 @@ import React, {
|
||||
} from "react";
|
||||
import useAsyncEffect from "use-async-effect";
|
||||
|
||||
const MonitorCriteria: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorCriteria: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const [alertRefreshToggle, setAlertRefreshToggle] = useState<boolean>(false);
|
||||
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorGroupDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -17,9 +17,9 @@ import React, {
|
||||
useEffect,
|
||||
} from "react";
|
||||
|
||||
const MonitorIncidents: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorIncidents: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
const [isLoading, setIsLoading] = React.useState<boolean>(true);
|
||||
|
@ -34,9 +34,9 @@ import React, {
|
||||
} from "react";
|
||||
import useAsyncEffect from "use-async-effect";
|
||||
|
||||
const MonitorGroupView: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorGroupView: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
const [currentGroupStatus, setCurrentGroupStatus] =
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorGroupViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorGroupOwners: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -18,9 +18,9 @@ const PageTitleMap: Dictionary<string> = {
|
||||
"On-Call Duty Logs",
|
||||
};
|
||||
|
||||
const OnCallDutyLayout: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallDutyLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
const lastPath: string = RouteUtil.getLastPath(path);
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Settings: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return <ExecutionLogTimelineTable onCallPolicyExecutionLogId={modelId} />;
|
||||
|
@ -2,9 +2,7 @@ import ExecutionLogsTable from "../../Components/OnCallPolicy/ExecutionLogs/Exec
|
||||
import PageComponentProps from "../PageComponentProps";
|
||||
import React, { FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const Settings: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Settings: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return <ExecutionLogsTable />;
|
||||
};
|
||||
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallDutyPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<Banner
|
||||
|
@ -7,9 +7,9 @@ import OnCallDutyPolicy from "Model/Models/OnCallDutyPolicy";
|
||||
import OnCallDutyPolicyCustomField from "Model/Models/OnCallDutyPolicyCustomField";
|
||||
import React, { Fragment, FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const OnCallDutyPolicyCustomFields: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallDutyPolicyCustomFields: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallPolicyDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Settings: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const onCallDutyPolicyIdString: string | null = Navigation.getParamByName(
|
||||
RouteParams.ModelID,
|
||||
RouteMap[PageMap.ON_CALL_DUTY_POLICY_VIEW_EXECUTION_LOG_VIEW]!,
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Settings: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const modelId: ObjectID = new ObjectID(
|
||||
Navigation.getParamByName(
|
||||
RouteParams.ModelID,
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallDutyPolicyView: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallDutyPolicyViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallScheduleDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallDutyScheduleView: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallScheduleDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallDutyScheduleViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const OnCallDutyPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<ModelTable<OnCallDutySchedule>
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const SSO: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [isLoading, setIsLoading] = useState<boolean>(false);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const PageNotFound: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Page title={""} breadcrumbLinks={[]}>
|
||||
<NotFound
|
||||
|
@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation";
|
||||
import ScheduledMaintenance from "Model/Models/ScheduledMaintenance";
|
||||
import React, { Fragment, FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const IncidentDelete: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const IncidentDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ScheduledMaintenanceView: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ScheduledMaintenanceViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ScheduledMaintenanceOwners: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceCatalogPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Page
|
||||
title={"Service Catalog"}
|
||||
|
@ -8,9 +8,9 @@ import Navigation from "CommonUI/src/Utils/Navigation";
|
||||
import ServiceCatalog from "Model/Models/ServiceCatalog";
|
||||
import React, { Fragment, FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const ServiceCatalogDelete: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceCatalogDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageView: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceCatalogViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceCatalogOwners: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const APIKeys: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<ModelTable<ApiKey>
|
||||
|
@ -22,9 +22,7 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
const CallLogs: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const CallLogs: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [showViewCallTextModal, setShowViewCallTextModal] =
|
||||
useState<boolean>(false);
|
||||
const [callText, setCallText] = useState<string>("");
|
||||
|
@ -20,9 +20,7 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
const Domains: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Domains: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [showVerificationModal, setShowVerificationModal] =
|
||||
useState<boolean>(false);
|
||||
const [error, setError] = useState<string>("");
|
||||
|
@ -21,9 +21,7 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
const EmailLogs: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const EmailLogs: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [showViewEmailTextModal, setShowViewEmailTextModal] =
|
||||
useState<boolean>(false);
|
||||
const [EmailText, setEmailText] = useState<string>("");
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Settings: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
{/* Project Settings View */}
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const TeamView: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const IncidentSeverityPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<ModelTable<IncidentSeverity>
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const IncidentsPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<ModelTable<IncidentState>
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const TeamView: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Labels: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<ModelTable<Label>
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const SettingsLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
return (
|
||||
<Page
|
||||
|
@ -22,9 +22,9 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
const MonitorSecrets: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MonitorSecrets: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const [currentlyEditingItem, setCurrentlyEditingItem] =
|
||||
useState<MonitorSecret | null>(null);
|
||||
|
||||
|
@ -22,9 +22,7 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
const Settings: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Settings: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [showRechargeBalanceModal, setShowRechargeBalanceModal] =
|
||||
useState<boolean>(false);
|
||||
const [isRechargeBalanceLoading, setIsRechargeBalanceLoading] =
|
||||
|
@ -24,9 +24,7 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
const ProbePage: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ProbePage: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [showKeyModal, setShowKeyModal] = useState<boolean>(false);
|
||||
|
||||
const [currentProbe, setCurrentProbe] = useState<Probe | null>(null);
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const Settings: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
{/* Project Settings View */}
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const TeamView: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ScheduledMaintenancesPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<ModelTable<ScheduledMaintenanceState>
|
||||
|
@ -21,9 +21,7 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
const SMSLogs: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const SMSLogs: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
const [showViewSmsTextModal, setShowViewSmsTextModal] =
|
||||
useState<boolean>(false);
|
||||
const [smsText, setSmsText] = useState<string>("");
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPages: FunctionComponent<PageComponentProps> = (): ReactElement => {
|
||||
return (
|
||||
<Page
|
||||
title={"Status Pages"}
|
||||
|
@ -9,9 +9,9 @@ import Navigation from "CommonUI/src/Utils/Navigation";
|
||||
import StatusPage from "Model/Models/StatusPage";
|
||||
import React, { FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const StatusPageDelete: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageCustomFields: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageView: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -1,9 +1,9 @@
|
||||
import PageComponentProps from "../../PageComponentProps";
|
||||
import React, { Fragment, FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const StatusPageDelete: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<></>
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageOwners: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const StatusPageDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<ComingSoon />
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -2,9 +2,9 @@ import TelemetryDocumentation from "../../../../Components/Telemetry/Documentati
|
||||
import PageComponentProps from "../../../PageComponentProps";
|
||||
import React, { Fragment, FunctionComponent, ReactElement } from "react";
|
||||
|
||||
const TelemetryDocumentationPage: FunctionComponent<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const TelemetryDocumentationPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
return (
|
||||
<Fragment>
|
||||
<TelemetryDocumentation />
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(0);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const TelemetryServiceViewLayout: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const { id } = useParams();
|
||||
const modelId: ObjectID = new ObjectID(id || "");
|
||||
const path: string = Navigation.getRoutePath(RouteUtil.getRoutes());
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const ServiceDelete: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
|
||||
return (
|
||||
|
@ -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<PageComponentProps> = (
|
||||
_props: PageComponentProps,
|
||||
): ReactElement => {
|
||||
const MetricViewPage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const metricName: string = Navigation.getLastParamAsString();
|
||||
const serviceId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user