Browse Source

chore: Commented out tracking.

master
Denis Thiessen 6 months ago
parent
commit
2550a46506
  1. 17
      src/App.js

17
src/App.js

@ -1,18 +1,19 @@
import React, {useEffect} from "react";
import { Route, Routes } from "react-router-dom";
import { GeistProvider, CssBaseline } from '@geist-ui/core'
import h337 from "heatmap.js";
const NoPageFound = React.lazy(() => import("./pages/NoPageFound"));
const TestPage = React.lazy(() => import("./pages/TestPage"));
const TestQuestionnaire = React.lazy(() => import("./pages/TestQuestionnaire"));
const mouseMode = true;
function App() {
useEffect(() => {
var heatmapInstance = h337.create({
/*var heatmapInstance = h337.create({
container: document.body,
radius: 20
});
@ -45,10 +46,10 @@ function App() {
if(mouseMode) {
document.body.addEventListener("mousemove", addData, false);
}else {
document.body.addEventListener("touchmove", addData, false);
document.body.addEventListener("touchstart", addData, false);
document.body.addEventListener("touchend", addData, false);
}
document.body.addEventListener("touchmove", addData, false);
document.body.addEventListener("touchstart", addData, false);
document.body.addEventListener("touchend", addData, false);
}*/
})
// TODO FIX...
@ -68,13 +69,17 @@ function App() {
wait(200);
return (
<GeistProvider>
<React.Suspense fallback="loading">
<Routes>
<Route path="/" element={<React.Suspense fallback={<>...</>}><TestPage /></React.Suspense>} />
<Route path="/info" element={<React.Suspense fallback={<>...</>}><TestPage /></React.Suspense>} />
<Route path="/questionnaire/:id" element={<React.Suspense fallback={<>...</>}><TestQuestionnaire /></React.Suspense>} />
<Route path="*" element={<React.Suspense fallback={<>...</>}><NoPageFound /></React.Suspense>} />
</Routes>
</React.Suspense>
<CssBaseline />
</GeistProvider>
);
}

Loading…
Cancel
Save