auth0-extensions/auth0-sso-dashboard-extension

View on GitHub
client/components/Dashboard/TableColumn.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React, { Component } from 'react';
import classNames from 'classnames';

class TableColumn extends Component {
  render() {
    const classes = classNames({
      'icon': this.props.isIcon
    });

    return (
      <th width={this.props.width} className={classes}>
        { this.props.children }
      </th>);
  }
}

TableColumn.propTypes = {
  width: React.PropTypes.string.isRequired
};

export default TableColumn;