({ error }: { error?: ClientError })
| 7 | import { isConnectionError } from '../lib/errors'; |
| 8 | |
| 9 | function FeedErrorScreen({ error }: { error?: ClientError }): ReactElement { |
| 10 | const isNetworkError = isConnectionError(error); |
| 11 | |
| 12 | return ( |
| 13 | <div className="flex h-full w-full"> |
| 14 | <PageContainer className="mx-auto !min-h-[calc(100vh-228px)] items-center justify-center tablet:!min-h-[calc(100vh-104px)]"> |
| 15 | {isNetworkError ? ( |
| 16 | <ConnectionError onRetry={() => window.location.reload()} /> |
| 17 | ) : ( |
| 18 | <ServerError /> |
| 19 | )} |
| 20 | </PageContainer> |
| 21 | </div> |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | export default FeedErrorScreen; |
nothing calls this directly
no test coverage detected