diff --git a/Part_1/unicafe/src/App.js b/Part_1/unicafe/src/App.js index 23f2705..17803c4 100644 --- a/Part_1/unicafe/src/App.js +++ b/Part_1/unicafe/src/App.js @@ -10,9 +10,29 @@ const Button = ({ handleClick, text }) => { const StatsDisplay = (props) => { return ( - <> -

{props.text}: {props.value}{props.sign}

- + + {props.text} + {props.value}{props.sign} + + ) +} + +const Stats = (props) => { + if (props.good === 0 && props.neutral === 0 && props.bad === 0) { + return ( +

No Feedback Given

+ ) + } + + return ( + + + + + + + +
) } @@ -52,13 +72,8 @@ const App = () => {

Statistics

- - - - - - - + + ) }