All files / lib/SocialList index.js

100% Statements 5/5
100% Branches 0/0
100% Functions 1/1
100% Lines 5/5
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62                        3x   3x       89x         89x       89x                                                                    
/**
 * @category containers
 * @component social-list
 * @variations collab-ui-react
 */
 
import React from 'react';
import PropTypes from 'prop-types';
 
class SocialList extends React.Component {
 
  render() {
    const { children } = this.props;
 
    return <span className='cui-social__list'>{children}</span>;
  }
}
 
SocialList.propTypes = {
  /** @prop Children nodes to render inside SocialList | null */
  children: PropTypes.node
};
 
SocialList.defaultProps = {
  children: null
};
 
SocialList.displayName = 'SocialList';
 
export default SocialList;
 
/**
* @component social-list
* @section default
* @react
import {
  List,
  ListItem,
  SocialList,
} from '@collab-ui/react';
 
export default class SocialListDefault extends React.PureComponent {
  render() {
    return (
      <SocialList>
        <List tabType='horizontal' className='social-list'>
          <ListItem>
            <i className='icon icon-facebook-circle_40' />
          </ListItem>
          <ListItem>
            <i className='icon icon-twitter-circle_40' />
          </ListItem>
          <ListItem>
            <i className='icon icon-linkedin-circle_40' />
          </ListItem>
        </List>
      </SocialList>
    );
  }
}
**/