Make 1.1 as it should be

This commit is contained in:
Augusto Gunsch 2022-06-12 11:37:29 +02:00
parent 2501cebcf6
commit 5c1120092e
1 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,11 @@ const Header = (props) => (
) )
const Content = (props) => ( const Content = (props) => (
<p>{props.part} {props.exercise}</p> <div>
<p>{props.part1} {props.exercise1}</p>
<p>{props.part2} {props.exercise2}</p>
<p>{props.part3} {props.exercise3}</p>
</div>
) )
const Total = (props) => ( const Total = (props) => (
@ -22,9 +26,7 @@ const App = () => {
return ( return (
<div> <div>
<Header course={course} /> <Header course={course} />
<Content part={part1} exercise={exercises1} /> <Content part1={part1} part2={part2} part3={part3} exercise1={exercises1} exercise2={exercises2} exercises3={exercises3} />
<Content part={part2} exercise={exercises2} />
<Content part={part3} exercise={exercises3} />
<Total total={exercises1 + exercises2 + exercises3} /> <Total total={exercises1 + exercises2 + exercises3} />
</div> </div>
) )