All files / atoms/Bage index.jsx

83.33% Statements 5/6
100% Branches 0/0
0% Functions 0/1
83.33% Lines 5/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29            1x       1x 1x               1x           1x      
import React from 'react';
import PropTypes from 'prop-types';
 
import Paper from '../Paper';
import withStyle from '../../Theme/withStyle';
 
const Bage = ({ fitAll, fitLeft, fitRight, ...rest }) => (
  <Paper rounded overline nowrap {...rest} />
);
 
Bage.displayName = 'Bage';
Bage.propTypes = {
  /** Reset Margins */
  fitAll: PropTypes.bool,
  /** Reset Left Margin */
  fitLeft: PropTypes.bool,
  /** Reset Right Margin */
  fitRight: PropTypes.bool,
};
Bage.defaultProps = {
  fitAll: false,
  fitLeft: false,
  fitRight: false,
};
 
export const RawBage = Bage;
 
export default withStyle(Bage);