summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/home/ContentSection.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-29 00:53:52 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-10 17:17:30 +0200
commit6e6f14db8986f5de6491b51117de0e1b0438b341 (patch)
tree7ee3fe59d5eaf03202fc0df4085ca9d4c7c280c0 /opendc-web/opendc-web-ui/src/components/home/ContentSection.js
parent4d4fb1bb19c045e78c74e57816ebee251e1d7d08 (diff)
ui: Adapt home components to Reactstrap
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/home/ContentSection.js')
-rw-r--r--opendc-web/opendc-web-ui/src/components/home/ContentSection.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/home/ContentSection.js b/opendc-web/opendc-web-ui/src/components/home/ContentSection.js
index 9d4832d9..3a8960d9 100644
--- a/opendc-web/opendc-web-ui/src/components/home/ContentSection.js
+++ b/opendc-web/opendc-web-ui/src/components/home/ContentSection.js
@@ -1,15 +1,16 @@
+import React from 'react'
import classNames from 'classnames'
+import { Container } from 'reactstrap'
import PropTypes from 'prop-types'
-import React from 'react'
import './ContentSection.sass'
-const ContentSection = ({ name, title, children }) => (
- <div id={name} className={classNames(name + '-section', 'content-section')}>
- <div className="container">
+const ContentSection = ({ name, title, children, className }) => (
+ <section id={name} className={classNames(className, name + '-section', 'content-section')}>
+ <Container>
<h1>{title}</h1>
{children}
- </div>
- </div>
+ </Container>
+ </section>
)
ContentSection.propTypes = {