From 55ef2d4c1bd5d39fdef437bc70351da8bb1b9168 Mon Sep 17 00:00:00 2001 From: Asabeneh Date: Sun, 4 Oct 2020 18:56:35 +0300 Subject: [PATCH] cleaning --- .../30-days-of-react_boilerplate-components/src/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/04_Day_Component/30-days-of-react_boilerplate-components/src/index.js b/04_Day_Component/30-days-of-react_boilerplate-components/src/index.js index aec8b84..defe4d2 100644 --- a/04_Day_Component/30-days-of-react_boilerplate-components/src/index.js +++ b/04_Day_Component/30-days-of-react_boilerplate-components/src/index.js @@ -14,7 +14,7 @@ const hexaColor = () => { } const HexaColor = () => { - let bgColor = hexaColor() + const bgColor = hexaColor() const styles = { height: '100px', display: 'flex', @@ -62,7 +62,7 @@ const TechList = () => { } const buttonStyles = { padding: '10px 20px', - background: 'rgb(0, 255, 0', + background: 'rgb(0, 255, 0)', border: 'none', borderRadius: 5, } @@ -79,6 +79,8 @@ const Main = () => (
+ {/* Generate two different hexa colors every time */} +