Fix display of ColumnLoading and BundleColumnError

This commit is contained in:
Alex Gleason 2021-03-31 15:02:23 -05:00
parent 2500dcf77a
commit a12cff8f8b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 12 additions and 3 deletions

View file

@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import LoadingIndicator from 'soapbox/components/loading_indicator';
export default class ColumnLoading extends ImmutablePureComponent {
@ -22,7 +23,7 @@ export default class ColumnLoading extends ImmutablePureComponent {
return (
<Column>
<ColumnHeader icon={icon} title={title} focusable={false} />
<div />
<LoadingIndicator />
</Column>
);
}

View file

@ -65,11 +65,19 @@ class WrappedRoute extends React.Component {
}
renderLoading = () => {
return <ColumnLoading />;
return (
<ColumnsAreaContainer layout={this.props.layout}>
<ColumnLoading />
</ColumnsAreaContainer>
);
}
renderError = (props) => {
return <BundleColumnError {...props} />;
return (
<ColumnsAreaContainer layout={this.props.layout}>
<BundleColumnError {...props} />
</ColumnsAreaContainer>
);
}
render() {