Fix display of ColumnLoading and BundleColumnError
This commit is contained in:
parent
2500dcf77a
commit
a12cff8f8b
2 changed files with 12 additions and 3 deletions
|
@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
|
||||||
import Column from '../../../components/column';
|
import Column from '../../../components/column';
|
||||||
import ColumnHeader from '../../../components/column_header';
|
import ColumnHeader from '../../../components/column_header';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
|
import LoadingIndicator from 'soapbox/components/loading_indicator';
|
||||||
|
|
||||||
export default class ColumnLoading extends ImmutablePureComponent {
|
export default class ColumnLoading extends ImmutablePureComponent {
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@ export default class ColumnLoading extends ImmutablePureComponent {
|
||||||
return (
|
return (
|
||||||
<Column>
|
<Column>
|
||||||
<ColumnHeader icon={icon} title={title} focusable={false} />
|
<ColumnHeader icon={icon} title={title} focusable={false} />
|
||||||
<div />
|
<LoadingIndicator />
|
||||||
</Column>
|
</Column>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,11 +65,19 @@ class WrappedRoute extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderLoading = () => {
|
renderLoading = () => {
|
||||||
return <ColumnLoading />;
|
return (
|
||||||
|
<ColumnsAreaContainer layout={this.props.layout}>
|
||||||
|
<ColumnLoading />
|
||||||
|
</ColumnsAreaContainer>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
renderError = (props) => {
|
renderError = (props) => {
|
||||||
return <BundleColumnError {...props} />;
|
return (
|
||||||
|
<ColumnsAreaContainer layout={this.props.layout}>
|
||||||
|
<BundleColumnError {...props} />
|
||||||
|
</ColumnsAreaContainer>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in a new issue