diff --git a/src/contents/measurement.tsx b/src/contents/measurement.tsx deleted file mode 100644 index d09ad1b2da80ca34530af2268f67f5ad8eef148f..0000000000000000000000000000000000000000 --- a/src/contents/measurement.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { useEffect } from "react"; -import { useLocation } from "react-router-dom"; -import { openFromOtherPage } from "../utils/openFromOtherpAge"; -export function Measurement() { - 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/headers/mes-h.tsx b/src/headers/mes-h.tsx deleted file mode 100644 index 11929f8ec77b37ef4b9e588c8f1f873505edf3e6..0000000000000000000000000000000000000000 --- a/src/headers/mes-h.tsx +++ /dev/null @@ -1,10 +0,0 @@ -export function MESH() { - - return ( - <HeaderBox title="Measurement"> - - </HeaderBox> - ); -} - -import HeaderBox from "../components/HeaderBox"; \ No newline at end of file