Refactored so that the studyEnd also has its own component

This commit is contained in:
cami 2021-07-22 02:40:17 +02:00
parent fbbdbd4332
commit 959912bd9b
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,12 @@
import React from "react";
import "../App.css";
export default function BehaviorStudyEnd() {
return (
<>
<p>
Merci :-)
</p>
</>
);
}

View file

@ -9,6 +9,7 @@ import BehaviorNormal from "../BehaviorNormal";
import { Button } from "../Button"; import { Button } from "../Button";
import BehaviorPhone from "../BehaviorPhone"; import BehaviorPhone from "../BehaviorPhone";
import BehaviorStanding from "../BehaviorStanding"; import BehaviorStanding from "../BehaviorStanding";
import BehaviorStudyEnd from "../BehaviorStudyEnd";
export default function Study() { export default function Study() {
const _logger = useRef(0); const _logger = useRef(0);
@ -215,7 +216,7 @@ export default function Study() {
</> </>
); );
const study_end = <p>Merci :-)</p>; const study_end = <BehaviorStudyEnd />;
return ( return (
<> <>