logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

column_loading.js (737B)


  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} />
  20. <div className='scrollable' />
  21. </Column>
  22. );
  23. }
  24. }