Fix hash navigation issue in App component

This commit is contained in:
dertyp7
2024-01-14 12:48:47 +01:00
parent fe5b271905
commit 851148c421

View File

@@ -16,8 +16,12 @@ export default function App() {
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
if (entry.target.id === "about") {
window.location.hash = "";
} else {
window.location.hash = entry.target.id;
}
}
});
},
{ threshold: 0.7 }