From 1b0aadf2c5ce9329d02512cbdee0c4e719231aeb Mon Sep 17 00:00:00 2001 From: Alex Boyd Date: Mon, 26 Aug 2024 16:12:44 -0400 Subject: [PATCH] remove max width from root --- .../components/pages/InvestigationPage.tsx | 36 +++++++++---------- react/src/root.css | 2 +- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/react/src/components/pages/InvestigationPage.tsx b/react/src/components/pages/InvestigationPage.tsx index 7b2b9bc..32bf10f 100644 --- a/react/src/components/pages/InvestigationPage.tsx +++ b/react/src/components/pages/InvestigationPage.tsx @@ -1,26 +1,24 @@ -import { useParams } from 'react-router' -import SideBar from '../SideBar.tsx' -import InvestigationGraph from '../graph/InvestigationGraph.tsx' -import Header from '../Header.tsx' -import { useInvestigationGraph } from '../../hooks/useInvestigationGraph.tsx' +import { useParams } from "react-router"; +import SideBar from "../SideBar.tsx"; +import InvestigationGraph from "../graph/InvestigationGraph.tsx"; +import Header from "../Header.tsx"; +import { useInvestigationGraph } from "../../hooks/useInvestigationGraph.tsx"; interface Props { - name: string - created_at: string + name: string; + created_at: string; } type InvestigationParams = { - investigationId: string -} + investigationId: string; +}; function InvestigationPage() { - const { investigationId } = useParams() - const { error, data, loading } = useInvestigationGraph(investigationId) - - if (loading) return
loading....
- if (error) return
uh oh error...
+ const { investigationId } = useParams(); + const { error, data, loading } = useInvestigationGraph(investigationId); - console.log(data) + if (loading) return
loading....
; + if (error) return
uh oh error...
; return ( <> @@ -28,10 +26,10 @@ function InvestigationPage() {

Investigation: {data.investigation.name}

-
+
-
+
- ) + ); } -export default InvestigationPage +export default InvestigationPage; diff --git a/react/src/root.css b/react/src/root.css index 39ecf74..bb435a9 100644 --- a/react/src/root.css +++ b/react/src/root.css @@ -1,5 +1,5 @@ #root { - max-width: 1280px; + /* max-width: 1280px; */ margin: 0 auto; padding: 2rem; text-align: center;