From b786c85bac8feda8ab3a8e95e23db0bfc234c40c Mon Sep 17 00:00:00 2001 From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de> Date: Mon, 16 Sep 2024 14:13:19 +0200 Subject: [PATCH] unused exports --- src/contents/drylab.tsx | 46 -------------------------------- src/contents/human-practices.tsx | 1 + src/contents/index.tsx | 7 +---- 3 files changed, 2 insertions(+), 52 deletions(-) delete mode 100644 src/contents/drylab.tsx diff --git a/src/contents/drylab.tsx b/src/contents/drylab.tsx deleted file mode 100644 index 70a65fa8..00000000 --- a/src/contents/drylab.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { useEffect } from "react"; -import { useLocation } from "react-router-dom"; -import { openFromOtherPage } from "../utils/openFromOtherpAge"; -export function Drylab() { - const location = useLocation(); - - useEffect(() => { - const params = new URLSearchParams(location.search); - const collapseId = params.get('collapseId'); - const tabId = params.get('tab'); - - // Scroll to the section specified by collapseId - if (collapseId) { - const collapseElement = document.getElementById(collapseId); - if (collapseElement) { - const elementTop = collapseElement.getBoundingClientRect().top + window.pageYOffset; - const offset = window.innerHeight / 2 - collapseElement.offsetHeight / 2; - const scrollPosition = elementTop - offset; - - window.scrollTo({ - top: scrollPosition, - behavior: 'smooth', - }); - } - } - - // Open the tab specified by tabId - if (tabId) { - openFromOtherPage(tabId)({ currentTarget: document.getElementById(tabId)! }); - } - }, [location.search]); - - return ( - <> - <div className="row"> - <div className="col"> - - </div> - </div> - <div className="row"> - - </div> - </> - ); - } - \ No newline at end of file diff --git a/src/contents/human-practices.tsx b/src/contents/human-practices.tsx index 0e388650..7a371203 100644 --- a/src/contents/human-practices.tsx +++ b/src/contents/human-practices.tsx @@ -94,6 +94,7 @@ export function HumanPractices() { text="Human Practices is the study of how your work affects the world, and how the world affects your work." cite="- Peter Carr, Director of Judging" /> + <img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse1.mm.bing.net%2Fth%3Fid%3DOIP.6mRPyWPFEIQzo-HP4kEukgHaEK%26pid%3DApi&f=1&ipt=ad1e62d3df6a343c1c163a8246d424a7b61015ac43a0cbe279976cf544be7aa7&ipo=images" alt="placeholder"></img> <section id="Overview" className="section"> <div className="center" > <h3 className="col personalstyleone">Overview</h3> diff --git a/src/contents/index.tsx b/src/contents/index.tsx index 418644d8..39fa9ccf 100644 --- a/src/contents/index.tsx +++ b/src/contents/index.tsx @@ -20,9 +20,7 @@ export * from "../sidebars/hpS.tsx" export * from "./Bfh.tsx"; export * from "./wiki.tsx"; -export * from "./drylab.tsx"; export * from "./impressum.tsx"; -export * from "./measurement.tsx"; export * from "./partners.tsx"; export * from "./supplementary-material.tsx"; export * from "./interviews.tsx"; @@ -44,7 +42,6 @@ export * from "../headers/spons-h.tsx" export * from "../headers/dry-h.tsx" export * from "../headers/eng-h.tsx" export * from "../headers/sup-h.tsx" -export * from "../headers/mes-h.tsx" export * from "./parts.tsx"; export * from "../headers/part-h.tsx" @@ -59,8 +56,6 @@ export * from "./judging.tsx"; export * from "../headers/judge-h.tsx" -export * from "./ethics.tsx"; -export * from "../headers/eth-h.tsx" export * from "./example.tsx"; @@ -71,7 +66,7 @@ export * from "../sidebars/engS.tsx" export * from "../sidebars/intS.tsx" export * from "../sidebars/safeS.tsx" export * from "../sidebars/none.tsx" -export * from "../sidebars/ethS.tsx" + export * from "./survey.tsx"; export * from "../headers/sur-h.tsx" -- GitLab