Standard ContentBox-es

This commit is contained in:
2018-06-19 07:18:20 +10:00
parent 37c938af07
commit 64fe8e76c8
6 changed files with 73 additions and 8 deletions

View File

@ -22,6 +22,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import React from 'react';
import ContentBox from './ContentBox';
export default function(props) {
let clazzes = "o-floating-content-box";
@ -40,10 +41,10 @@ export default function(props) {
if(props.className) clazzes += " " + props.className;
return (
<div className={ clazzes } >
<ContentBox {...props} className={ clazzes }>
<div className="o-floating-content-box__inner">
{ props.children }
</div>
</div>
</ContentBox>
);
}