mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-19 04:00:56 -04:00
22 lines
465 B
JavaScript
22 lines
465 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Row, Col } from '@freecodecamp/react-bootstrap';
|
|
|
|
function FullWidthRow({ children, className }) {
|
|
return (
|
|
<Row className={className}>
|
|
<Col sm={8} smOffset={2} xs={12}>
|
|
{children}
|
|
</Col>
|
|
</Row>
|
|
);
|
|
}
|
|
|
|
FullWidthRow.displayName = 'FullWidthRow';
|
|
FullWidthRow.propTypes = {
|
|
children: PropTypes.any,
|
|
className: PropTypes.string
|
|
};
|
|
|
|
export default FullWidthRow;
|