From 33f229be5663559d254fb245d86fbff4a43270e2 Mon Sep 17 00:00:00 2001 From: momin-riyadh Date: Sat, 10 Oct 2020 19:48:26 +0600 Subject: [PATCH] duplicate property in CSS styles in JavaScript Object --- .../09_conditional_rendering.md | 15 +++++---------- .../src/index.js | 3 +-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/09_Day_Conditional_Rendering/09_conditional_rendering.md b/09_Day_Conditional_Rendering/09_conditional_rendering.md index fbc7184a4e..d3aff0ef52 100644 --- a/09_Day_Conditional_Rendering/09_conditional_rendering.md +++ b/09_Day_Conditional_Rendering/09_conditional_rendering.md @@ -119,11 +119,10 @@ const buttonStyles = { padding: 10, border: 'none', borderRadius: 5, - margin: 3, + margin: '3px auto', cursor: 'pointer', fontSize: 22, color: 'white', - margin: '0 auto', } // class based component @@ -225,11 +224,10 @@ const buttonStyles = { padding: 10, border: 'none', borderRadius: 5, - margin: 3, + margin: '3px auto', cursor: 'pointer', fontSize: 22, color: 'white', - margin: '0 auto', } // class based component @@ -325,11 +323,10 @@ const buttonStyles = { padding: 10, border: 'none', borderRadius: 5, - margin: 3, + margin: '3px auto', cursor: 'pointer', fontSize: 22, color: 'white', - margin: '0 auto', } // class based component @@ -434,11 +431,10 @@ const buttonStyles = { padding: 10, border: 'none', borderRadius: 5, - margin: 3, + margin: '3px auto', cursor: 'pointer', fontSize: 22, color: 'white', - margin: '0 auto', } // class based component @@ -663,11 +659,10 @@ const buttonStyles = { padding: 10, border: 'none', borderRadius: 5, - margin: 3, + margin: '3px auto', cursor: 'pointer', fontSize: 22, color: 'white', - margin: '0 auto', } // Footer Component diff --git a/09_Day_Conditional_Rendering/09_conditional_rendering_boilerplate/src/index.js b/09_Day_Conditional_Rendering/09_conditional_rendering_boilerplate/src/index.js index f156a31e36..292a7e7692 100644 --- a/09_Day_Conditional_Rendering/09_conditional_rendering_boilerplate/src/index.js +++ b/09_Day_Conditional_Rendering/09_conditional_rendering_boilerplate/src/index.js @@ -127,11 +127,10 @@ const buttonStyles = { padding: 10, border: 'none', borderRadius: 5, - margin: 3, + margin: '3px auto', cursor: 'pointer', fontSize: 22, color: 'white', - margin: '0 auto', } // Footer Component