From 0bb04517d6bd044e88fa7fb2c806f31864c3867a Mon Sep 17 00:00:00 2001 From: Asabeneh Date: Mon, 5 Oct 2020 22:06:36 +0300 Subject: [PATCH] day_5 has been cleaned --- .../src/index.js | 21 +++++++++++++--- 06_Day_Map_List_Keys/05_map_list_keys.md | 25 +++++++++++++++++++ 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 06_Day_Map_List_Keys/05_map_list_keys.md 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 }) => ( -