Files
freeCodeCamp/common/app/helperComponents/SlimWidthRow.js
2018-08-03 19:27:42 +05:30

21 lines
424 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col } from 'react-bootstrap';
function SlimWidthRow({ children, ...restProps }) {
return (
<Row {...restProps}>
<Col md={ 6 } mdOffset={ 3 } sm={ 12 }>
{ children }
</Col>
</Row>
);
}
SlimWidthRow.displayName = 'SlimWidthRow';
SlimWidthRow.propTypes = {
children: PropTypes.any
};
export default SlimWidthRow;