fix: Missing spacing on document history loading state

This commit is contained in:
Tom Moor
2022-09-10 14:41:50 +01:00
parent 9ebc69a830
commit c10be0ebaa
2 changed files with 5 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ type Props = {
body?: PlaceholderTextProps;
};
const ListPlaceHolder = ({ count, className, header, body }: Props) => {
const Placeholder = ({ count, className, header, body }: Props) => {
return (
<Fade>
{times(count || 2, (index) => (
@@ -31,4 +31,4 @@ const Item = styled(Flex)`
padding: 10px 0;
`;
export default ListPlaceHolder;
export default Placeholder;

View File

@@ -165,7 +165,9 @@ class PaginatedList<T extends PaginatedItem> extends React.Component<Props<T>> {
return (
this.props.loading || (
<DelayedMount>
<PlaceholderList count={5} />
<div className={this.props.className}>
<PlaceholderList count={5} />
</div>
</DelayedMount>
)
);