]> cat aescling's git repositories - mastodon.git/blob - app/javascript/mastodon/features/ui/components/column_loading.js
Reduce wasted renders for column_loading.js (#5021)
[mastodon.git] / app / javascript / mastodon / features / ui / components / column_loading.js
1 import React from 'react';
2 import PropTypes from 'prop-types';
3
4 import Column from '../../../components/column';
5 import ColumnHeader from '../../../components/column_header';
6 import ImmutablePureComponent from 'react-immutable-pure-component';
7
8 export default class ColumnLoading extends ImmutablePureComponent {
9
10 static propTypes = {
11 title: PropTypes.oneOfType(PropTypes.node, PropTypes.string),
12 icon: PropTypes.string,
13 };
14
15 static defaultProps = {
16 title: '',
17 icon: '',
18 };
19
20 render() {
21 let { title, icon } = this.props;
22 return (
23 <Column>
24 <ColumnHeader icon={icon} title={title} multiColumn={false} focusable={false} />
25 <div className='scrollable' />
26 </Column>
27 );
28 }
29
30 }
This page took 0.110378 seconds and 4 git commands to generate.