Files
freeCodeCamp/client/src/components/helpers/FullWidthRow.js
2018-09-07 14:37:14 +01:00

21 lines
401 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col } from '@freecodecamp/react-bootstrap';
function FullWidthRow({ children }) {
return (
<Row>
<Col sm={8} smOffset={2} xs={12}>
{children}
</Col>
</Row>
);
}
FullWidthRow.displayName = 'FullWidthRow';
FullWidthRow.propTypes = {
children: PropTypes.any
};
export default FullWidthRow;