Refactored so that the studyEnd also has its own component
This commit is contained in:
parent
fbbdbd4332
commit
959912bd9b
2 changed files with 14 additions and 1 deletions
12
frontend/src/components/BehaviorStudyEnd.js
Normal file
12
frontend/src/components/BehaviorStudyEnd.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import React from "react";
|
||||
import "../App.css";
|
||||
|
||||
export default function BehaviorStudyEnd() {
|
||||
return (
|
||||
<>
|
||||
<p>
|
||||
Merci :-)
|
||||
</p>
|
||||
</>
|
||||
);
|
||||
}
|
|
@ -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 = <p>Merci :-)</p>;
|
||||
const study_end = <BehaviorStudyEnd />;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue