From 643f73ae0f8f7967c12cc3595dc5d70d113db6ae Mon Sep 17 00:00:00 2001
From: Bjarke Madsen <bjarke@nordu.net>
Date: Tue, 23 May 2023 13:53:41 +0200
Subject: [PATCH] Clean up unused imports
---
webapp/src/components/SideBar.tsx | 2 +-
webapp/src/components/global/Banner.tsx | 2 +-
webapp/src/components/global/ExternalPageNavBar.tsx | 2 +-
webapp/src/components/global/SectionLink.tsx | 8 +++-----
webapp/src/pages/CompendiumData.tsx | 2 +-
5 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/webapp/src/components/SideBar.tsx b/webapp/src/components/SideBar.tsx
index 437eaa6c..0ad11f2a 100644
--- a/webapp/src/components/SideBar.tsx
+++ b/webapp/src/components/SideBar.tsx
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
-import { sidebarContext } from "../helpers/SidebarProvider";
+// import { sidebarContext } from "../helpers/SidebarProvider";
import { AiOutlineClose, AiOutlinePlus } from 'react-icons/ai';
diff --git a/webapp/src/components/global/Banner.tsx b/webapp/src/components/global/Banner.tsx
index 2aed408b..e74f2f9d 100644
--- a/webapp/src/components/global/Banner.tsx
+++ b/webapp/src/components/global/Banner.tsx
@@ -1,5 +1,5 @@
import React, { ReactElement } from "react";
-import { Container, Row, Col } from "react-bootstrap";
+import { Container, Row } from "react-bootstrap";
import SectionDataLogo from "../../images/home_data_icon.svg";
diff --git a/webapp/src/components/global/ExternalPageNavBar.tsx b/webapp/src/components/global/ExternalPageNavBar.tsx
index 4b0608ec..943babba 100644
--- a/webapp/src/components/global/ExternalPageNavBar.tsx
+++ b/webapp/src/components/global/ExternalPageNavBar.tsx
@@ -1,5 +1,5 @@
import React, { ReactElement } from "react";
-import { Container, Row, Col } from "react-bootstrap";
+import { Container, Row } from "react-bootstrap";
import GeantLogo from "../../images/geant_logo_f2020_new.svg";
/**
diff --git a/webapp/src/components/global/SectionLink.tsx b/webapp/src/components/global/SectionLink.tsx
index 0a6d4181..764b94e1 100644
--- a/webapp/src/components/global/SectionLink.tsx
+++ b/webapp/src/components/global/SectionLink.tsx
@@ -1,6 +1,4 @@
import React, { ReactElement } from "react";
-import { Container, Row, Col } from "react-bootstrap";
-
import SectionDataLogo from "../../images/home_reports_icon.svg";
interface inputProps {
@@ -10,13 +8,13 @@ interface inputProps {
function SectionLink({ section }: inputProps): ReactElement {
return (
<div className={'bold-caps-17pt section-container'}>
- <div style={{ display: "flex", alignSelf: "right", lineHeight: "1.5rem", marginTop: "0.5rem"}}>
+ <div style={{ display: "flex", alignSelf: "right", lineHeight: "1.5rem", marginTop: "0.5rem" }}>
<span>
Compendium <br />
<span style={{ float: "right" }}>{section}</span>
</span>
-
-
+
+
</div>
<img src={SectionDataLogo} style={{ maxWidth: "4rem" }} />
diff --git a/webapp/src/pages/CompendiumData.tsx b/webapp/src/pages/CompendiumData.tsx
index 99bc46f6..8af88698 100644
--- a/webapp/src/pages/CompendiumData.tsx
+++ b/webapp/src/pages/CompendiumData.tsx
@@ -1,5 +1,5 @@
import React, { ReactElement } from "react";
-import { Container, Row, Col } from "react-bootstrap";
+import { Container, Row } from "react-bootstrap";
import CollapsibleBox from "../components/CollapsibleBox";
import PageHeader from "../components/global/PageHeader"
import SectionLink from "../components/global/SectionLink";
--
GitLab