From 959912bd9b0eaac3b59d75a1024766be5aff4aca Mon Sep 17 00:00:00 2001 From: cami Date: Thu, 22 Jul 2021 02:40:17 +0200 Subject: [PATCH] Refactored so that the studyEnd also has its own component --- frontend/src/components/BehaviorStudyEnd.js | 12 ++++++++++++ frontend/src/components/pages/Study.js | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 frontend/src/components/BehaviorStudyEnd.js diff --git a/frontend/src/components/BehaviorStudyEnd.js b/frontend/src/components/BehaviorStudyEnd.js new file mode 100644 index 0000000..e19c613 --- /dev/null +++ b/frontend/src/components/BehaviorStudyEnd.js @@ -0,0 +1,12 @@ +import React from "react"; +import "../App.css"; + +export default function BehaviorStudyEnd() { + return ( + <> +

+ Merci :-) +

+ + ); +} diff --git a/frontend/src/components/pages/Study.js b/frontend/src/components/pages/Study.js index 9378c54..4d73609 100644 --- a/frontend/src/components/pages/Study.js +++ b/frontend/src/components/pages/Study.js @@ -9,6 +9,7 @@ import BehaviorNormal from "../BehaviorNormal"; import { Button } from "../Button"; import BehaviorPhone from "../BehaviorPhone"; import BehaviorStanding from "../BehaviorStanding"; +import BehaviorStudyEnd from "../BehaviorStudyEnd"; export default function Study() { const _logger = useRef(0); @@ -215,7 +216,7 @@ export default function Study() { ); - const study_end =

Merci :-)

; + const study_end = ; return ( <>