2017-07-08 01:06:02 +03:00
|
|
|
import React from 'react';
|
2017-07-09 16:02:26 +03:00
|
|
|
import PropTypes from 'prop-types';
|
2017-07-08 01:06:02 +03:00
|
|
|
|
|
|
|
import Column from '../../../components/column';
|
|
|
|
import ColumnHeader from '../../../components/column_header';
|
2017-09-20 20:58:44 +03:00
|
|
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
2017-07-08 01:06:02 +03:00
|
|
|
|
2017-09-20 20:58:44 +03:00
|
|
|
export default class ColumnLoading extends ImmutablePureComponent {
|
2017-07-08 01:06:02 +03:00
|
|
|
|
2017-09-20 20:58:44 +03:00
|
|
|
static propTypes = {
|
2017-09-22 18:50:29 +03:00
|
|
|
title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
2017-09-20 20:58:44 +03:00
|
|
|
icon: PropTypes.string,
|
|
|
|
};
|
2017-07-09 16:02:26 +03:00
|
|
|
|
2017-09-20 20:58:44 +03:00
|
|
|
static defaultProps = {
|
|
|
|
title: '',
|
|
|
|
icon: '',
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
let { title, icon } = this.props;
|
|
|
|
return (
|
|
|
|
<Column>
|
|
|
|
<ColumnHeader icon={icon} title={title} multiColumn={false} focusable={false} />
|
|
|
|
<div className='scrollable' />
|
|
|
|
</Column>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|