diff --git a/backend/src/app.py b/backend/src/app.py index 9c085b3..84a77d1 100644 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -81,6 +81,7 @@ with app.app_context(): db.create_all() db.session.commit() + @app.route('/api/login', methods=['POST']) def login(): """ diff --git a/frontend/src/App.js b/frontend/src/App.js index 45f5a10..cb8bf38 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -17,7 +17,7 @@ import BehaviorNormal from "./components/pages/BehaviorNormal"; function App() { const [isLoggedIn] = useAuth(); - isLoggedIn ? (document.title = isLoggedIn) : document.title = isLoggedIn; + isLoggedIn ? (document.title = isLoggedIn) : (document.title = isLoggedIn); return ( <> diff --git a/frontend/src/components/ErrorMessage.js b/frontend/src/components/ErrorMessage.js index 41c2798..ef97343 100644 --- a/frontend/src/components/ErrorMessage.js +++ b/frontend/src/components/ErrorMessage.js @@ -4,7 +4,7 @@ import "../App.css"; export default function ErrorMessage(props) { return ( <> -

{props.message}

+

{props.message}

); -} \ No newline at end of file +} diff --git a/frontend/src/components/Navbar.js b/frontend/src/components/Navbar.js index 973b276..26bc3c6 100644 --- a/frontend/src/components/Navbar.js +++ b/frontend/src/components/Navbar.js @@ -6,7 +6,7 @@ import "@fortawesome/fontawesome-free/css/all.css"; function Navbar() { const [click, setClick] = useState(false); - const [button,setButton] = useState(true); + const [button, setButton] = useState(true); const handleClick = () => setClick(!click); const closeMobileMenu = () => setClick(false); diff --git a/frontend/src/components/pages/BehaviorNormal.js b/frontend/src/components/pages/BehaviorNormal.js index 5b71911..5484a03 100644 --- a/frontend/src/components/pages/BehaviorNormal.js +++ b/frontend/src/components/pages/BehaviorNormal.js @@ -1,4 +1,4 @@ -import React, { useEffect, useState} from "react"; +import React, { useEffect, useState } from "react"; import "../../App.css"; import Footer from "../../Footer"; import { Logger } from "@behametrics/logger-web"; diff --git a/frontend/src/components/pages/Login.js b/frontend/src/components/pages/Login.js index 527105a..46dd4c5 100644 --- a/frontend/src/components/pages/Login.js +++ b/frontend/src/components/pages/Login.js @@ -1,4 +1,4 @@ -import React, {useState} from "react"; +import React, { useState } from "react"; import "../../App.css"; import Footer from "../../Footer"; import InputField from "../InputField"; diff --git a/frontend/src/components/pages/Register.js b/frontend/src/components/pages/Register.js index ab4707a..3a9d551 100644 --- a/frontend/src/components/pages/Register.js +++ b/frontend/src/components/pages/Register.js @@ -1,4 +1,4 @@ -import React, {useState} from "react"; +import React, { useState } from "react"; import "../../App.css"; import Footer from "../../Footer"; import InputField from "../InputField"; diff --git a/frontend/src/components/pages/Umfrage.js b/frontend/src/components/pages/Umfrage.js index 6a6b0e1..7a7e9d8 100644 --- a/frontend/src/components/pages/Umfrage.js +++ b/frontend/src/components/pages/Umfrage.js @@ -1,4 +1,4 @@ -import React, {useState} from "react"; +import React, { useState } from "react"; import "../../App.css"; import "../Input.css"; import Footer from "../../Footer";