Renamed Behavior to behaviorNormal
This commit is contained in:
parent
8bc7076e86
commit
1691500883
2 changed files with 2 additions and 38 deletions
|
@ -12,8 +12,8 @@ import Manual from "./components/pages/Manual";
|
||||||
import Secret from "./components/pages/Secret";
|
import Secret from "./components/pages/Secret";
|
||||||
import Umfrage from "./components/pages/Umfrage";
|
import Umfrage from "./components/pages/Umfrage";
|
||||||
import PrivateRoute from "./auth/PrivateRoute";
|
import PrivateRoute from "./auth/PrivateRoute";
|
||||||
import Behavior from "./components/pages/Behavior";
|
|
||||||
import { useAuth } from "./auth/AuthProvider";
|
import { useAuth } from "./auth/AuthProvider";
|
||||||
|
import BehaviorNormal from "./components/pages/BehaviorNormal";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [isLoggedIn] = useAuth();
|
const [isLoggedIn] = useAuth();
|
||||||
|
@ -31,7 +31,7 @@ function App() {
|
||||||
<Route path="/register" component={Register} />
|
<Route path="/register" component={Register} />
|
||||||
<Route path="/manual" component={Manual} />
|
<Route path="/manual" component={Manual} />
|
||||||
<Route path="/ueber" component={Ueber} />
|
<Route path="/ueber" component={Ueber} />
|
||||||
<PrivateRoute path="/behavior" component={Behavior} />
|
<PrivateRoute path="/behavior" component={BehaviorNormal} />
|
||||||
<PrivateRoute path="/secret" component={Secret} />
|
<PrivateRoute path="/secret" component={Secret} />
|
||||||
<PrivateRoute path="/umfrage" component={Umfrage} />
|
<PrivateRoute path="/umfrage" component={Umfrage} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
import React, { useEffect } from "react";
|
|
||||||
import "../../App.css";
|
|
||||||
import Footer from "../../Footer";
|
|
||||||
import { Logger } from "@behametrics/logger-web";
|
|
||||||
import { useAuth } from "../../auth/AuthProvider";
|
|
||||||
|
|
||||||
export default function Behavior() {
|
|
||||||
let logger = new Logger({
|
|
||||||
//inputs: ["cursor", "wheel", "keyboard", "touch"],
|
|
||||||
inputs: ["keyboard"],
|
|
||||||
// logToConsole: true,
|
|
||||||
});
|
|
||||||
logger.init();
|
|
||||||
|
|
||||||
let [isLoggedIn] = useAuth();
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
document.title = `${isLoggedIn}`;
|
|
||||||
console.log(isLoggedIn);
|
|
||||||
if (isLoggedIn === false) {
|
|
||||||
logger.stop();
|
|
||||||
//console.log("stopped logger");
|
|
||||||
} else {
|
|
||||||
logger.start();
|
|
||||||
// console.log("start logger");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div className="sitePage">
|
|
||||||
<h1>Studie Verhaltensmerkmale</h1>
|
|
||||||
</div>
|
|
||||||
<Footer />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in a new issue