column_loading.js 749 B

123456789101112131415161718192021222324252627282930
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import Column from '../../../components/column';
  4. import ColumnHeader from '../../../components/column_header';
  5. import ImmutablePureComponent from 'react-immutable-pure-component';
  6. export default class ColumnLoading extends ImmutablePureComponent {
  7. static propTypes = {
  8. title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
  9. icon: PropTypes.string,
  10. };
  11. static defaultProps = {
  12. title: '',
  13. icon: '',
  14. };
  15. render() {
  16. let { title, icon } = this.props;
  17. return (
  18. <Column>
  19. <ColumnHeader icon={icon} title={title} multiColumn={false} focusable={false} placeholder />
  20. <div className='scrollable' />
  21. </Column>
  22. );
  23. }
  24. }