mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-04 09:05:49 -05:00
21 lines
424 B
JavaScript
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;
|