From 9be3278139ffaa3cd04d2fe85e04b46d0448223a Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Sun, 18 Mar 2018 11:03:36 +1100 Subject: [PATCH] Added title prop to body section --- public/components/sections/BodySection.jsx | 5 ++++- public/styles/components/_section--style-body.scss | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/components/sections/BodySection.jsx b/public/components/sections/BodySection.jsx index 4be1de8..436193a 100644 --- a/public/components/sections/BodySection.jsx +++ b/public/components/sections/BodySection.jsx @@ -21,7 +21,10 @@ class BodySection extends React.Component { return (
- {this.props.children} + { this.props.title } +
+ {this.props.children} +
) diff --git a/public/styles/components/_section--style-body.scss b/public/styles/components/_section--style-body.scss index 8f4607b..be09172 100644 --- a/public/styles/components/_section--style-body.scss +++ b/public/styles/components/_section--style-body.scss @@ -12,6 +12,9 @@ */ .c-section--style-body__inner { background: $s-color--background-default; +} + +.c-body-section__wrapper { padding: 1em; }