diff --git a/src/App.js b/src/App.js index e363a07a3..fa6273da9 100644 --- a/src/App.js +++ b/src/App.js @@ -18,7 +18,7 @@ import { import { getUser } from "./api/auth"; import { AuthContext } from "./context"; import { Loading } from "./components/Loading"; -import { Toast, ToastContext, ToastProvider } from "./components/Toast/toast"; +import { Toast, ToastContext } from "./components/Toast/toast"; export const navigation = [ { diff --git a/src/components/Layout/index.js b/src/components/Layout/index.js index 7901cd005..47cacf87b 100644 --- a/src/components/Layout/index.js +++ b/src/components/Layout/index.js @@ -1,4 +1,5 @@ import { SearchLayout } from "./search"; +import { MinimalLayout } from "./minimal"; import SidebarLayout from "./sidebar"; -export { SearchLayout, SidebarLayout }; +export { SearchLayout, SidebarLayout, MinimalLayout }; diff --git a/src/components/Layout/minimal.js b/src/components/Layout/minimal.js new file mode 100644 index 000000000..5073c042d --- /dev/null +++ b/src/components/Layout/minimal.js @@ -0,0 +1,26 @@ +import { UserProfile } from "../UserProfile/user-profile"; + +export function MinimalLayout({ children, title }) { + return ( +
+
+
+
+
+
{title}
+
+
+ +
+
+
+ +
+
+
{children}
+
+
+
+
+ ); +} diff --git a/src/pages/incident/incident-create.js b/src/pages/incident/incident-create.js new file mode 100644 index 000000000..e8fc79714 --- /dev/null +++ b/src/pages/incident/incident-create.js @@ -0,0 +1,10 @@ +import { IncidentCreate } from "../../components/Incidents/IncidentCreate"; +import { MinimalLayout } from "../../components/Layout"; + +export function IncidentCreatePage() { + return ( + + + + ); +} diff --git a/src/pages/incident/incident-list.js b/src/pages/incident/incident-list.js index 008e7bd67..057a722e4 100644 --- a/src/pages/incident/incident-list.js +++ b/src/pages/incident/incident-list.js @@ -1,9 +1,9 @@ import React, { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; -import { getAllIncident } from "../../../api/services/incident"; -import { IncidentCreate } from "../../../components/Incidents/IncidentCreate"; -import { IncidentList } from "../../../components/Incidents/IncidentList"; -import { Modal } from "../../../components/Modal"; +import { getAllIncident } from "../../api/services/incident"; +import { IncidentCreate } from "../../components/Incidents/IncidentCreate"; +import { IncidentList } from "../../components/Incidents/IncidentList"; +import { Modal } from "../../components/Modal"; export function IncidentListPage() { const navigate = useNavigate(); diff --git a/src/pages/index.js b/src/pages/index.js index d2eab7ed2..dc226737a 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,6 +1,13 @@ import { IncidentDetailsPage } from "./incident/incident-details"; import { IncidentListPage } from "./incident/incident-list"; +import { IncidentCreatePage } from "./incident/incident-create"; import { LogsPage } from "./logs-page"; import { TopologyPage } from "./topology-page"; -export { LogsPage, TopologyPage, IncidentDetailsPage, IncidentListPage }; +export { + LogsPage, + TopologyPage, + IncidentDetailsPage, + IncidentListPage, + IncidentCreatePage +};