mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-13 04:00:56 -05:00
21 lines
430 B
JavaScript
21 lines
430 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Row, Col } from '@freecodecamp/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;
|