Skip to content
Snippets Groups Projects
Commit 6ff75207 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

delete measurement

parent f70d0b3a
No related branches found
No related tags found
No related merge requests found
Pipeline #422076 failed
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
export function MESH() {
return (
<HeaderBox title="Measurement">
</HeaderBox>
);
}
import HeaderBox from "../components/HeaderBox";
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment