diff --git a/05_Day_Props/30-days-of-react_boilerplate-props/src/index.js b/05_Day_Props/30-days-of-react_boilerplate-props/src/index.js index 470e9315ac..261690b07e 100644 --- a/05_Day_Props/30-days-of-react_boilerplate-props/src/index.js +++ b/05_Day_Props/30-days-of-react_boilerplate-props/src/index.js @@ -70,7 +70,22 @@ const UserCard = ({ user: { firstName, lastName, image } }) => ( // A button component -const Button = ({ text, onClick }) => +const Button = ({ text, onClick, style }) => ( + +) + +const buttonStyles = { + backgroundColor: '#61dbfb', + padding: 10, + border: 'none', + borderRadius: 5, + margin: 3, + cursor: 'pointer', + fontSize: 18, + color: 'white', +} // Main Component const Main = ({ user, techs, greetPeople, handleTime }) => ( @@ -81,8 +96,8 @@ const Main = ({ user, techs, greetPeople, handleTime }) => ( -