diff --git a/frontend/src/components/Button.css b/frontend/src/components/Button.css index 19143fe..cbd63e3 100644 --- a/frontend/src/components/Button.css +++ b/frontend/src/components/Button.css @@ -31,12 +31,6 @@ font-size: 1.3em; } -.btn--full{ - padding: 12px 26px; - margin: 0 auto; - font-size: 1.5em; -} - .btn--large:hover, .btn--medium:hover { transition: all 0.3s ease-out; @@ -44,4 +38,3 @@ color: var(--secondary); transition: 250ms; } - diff --git a/frontend/src/components/Button.js b/frontend/src/components/Button.js index a43e24c..2353f06 100644 --- a/frontend/src/components/Button.js +++ b/frontend/src/components/Button.js @@ -4,7 +4,7 @@ import { Link } from "react-router-dom"; const STYLES = ["btn--primary", "btn--outline"]; -const SIZES = ["btn--medium", "btn--large", "btn--full"]; +const SIZES = ["btn--medium", "btn--large"]; export const Button = ({ children, type, diff --git a/frontend/src/components/pages/Study.js b/frontend/src/components/pages/Study.js index 94d825d..a6bbeab 100644 --- a/frontend/src/components/pages/Study.js +++ b/frontend/src/components/pages/Study.js @@ -6,7 +6,6 @@ import SubmitField from "../SubmitField"; import { Logger } from "@behametrics/logger-web"; import BehaviorStudyInfo from "../BehaviorStudyInfo"; import BehaviorNormal from "../BehaviorNormal"; -import { Button } from "../Button"; export default function Study() { let username = ""; @@ -19,16 +18,6 @@ export default function Study() { password = tmp_password; }; - let isStepStart = true; - const setIsStepStart = (tmp) => { - isStepStart = tmp; - }; - - let isStepNormal = false; - const setIsStepNormal = (tmp) => { - isStepNormal = tmp; - }; - let logger = new Logger({ //inputs: ["cursor", "wheel", "keyboard", "touch"], inputs: ["keyboard"], @@ -62,13 +51,6 @@ export default function Study() { return false; }; - const handleIsStepStart = () => { - setIsStepStart(false); - console.log("isStepStar", isStepStart) - setIsStepNormal(true); - console.log("isStepStar", isStepNormal) - }; - const onSubmitClick = (e) => { e.preventDefault(); let opts = { @@ -93,65 +75,47 @@ export default function Study() { }); }; - /* - useEffect(() => { - if (isStepStart) { - handleIsStepStart(); - console.log("useEffect; normal"); - } else if (isStepNormal) { - console.log("useEffect; normal"); - } - }); - */ - return ( <>

Studie

- {isStepStart ? ( - <> - - - - ) : null} - {isStepNormal ? ( - <> - -
- - - - - - ) : null} + {" "} +
+ + {" "} + +
+ + + + +