feat: Error state for paginated lists (#3766)

* Add error state for failed list loading

* Move sidebar collections to PaginatedList for improved error handling, loading, retrying etc
This commit is contained in:
Tom Moor
2022-07-16 00:11:04 +01:00
committed by GitHub
parent acabc00643
commit a16cf72b73
7 changed files with 148 additions and 93 deletions

View File

@@ -1,17 +1,6 @@
import * as React from "react";
import styled from "styled-components";
type Props = {
onClick?: React.MouseEventHandler<HTMLButtonElement>;
};
const ButtonLink: React.FC<Props> = React.forwardRef(
(props: Props, ref: React.Ref<HTMLButtonElement>) => {
return <Button {...props} ref={ref} />;
}
);
const Button = styled.button`
const ButtonLink = styled.button`
margin: 0;
padding: 0;
border: 0;