diff --git a/src/components/FinalPoem.js b/src/components/FinalPoem.js index d516184e..429f7965 100644 --- a/src/components/FinalPoem.js +++ b/src/components/FinalPoem.js @@ -1,20 +1,48 @@ import React from 'react'; import './FinalPoem.css'; +import PropTypes from 'prop-types'; -const FinalPoem = (props) => { +const FinalPoem = ({finalPoemSubmitted, isFinalPoemVisible, showFinalPoem}) => { + + const finalPoemDisplayed = finalPoemSubmitted.map((sentence , i) => { + return ( +
+ {sentence} +
+ ) + }) + //conditional rendering depending on whether the final poem is showing or not return (Each player should take turns filling out and submitting the form below. Each turn should be done individually and in secret! Take inspiration from the revealed recent submission. When all players are finished, click the final button on the bottom to reveal the entire poem.
- ++ Each player should take turns filling out and submitting the form below. + Each turn should be done individually and in secret! + Take inspiration from the revealed recent submission. When all players are finished, + click the final button on the bottom to reveal the entire poem. +
Please follow the following format for your poetry submission:
-{ exampleFormat }
- -