MCPcopy Create free account
hub / github.com/dailydotdev/apps / FeedErrorScreen

Function FeedErrorScreen

packages/shared/src/components/FeedErrorScreen.tsx:9–23  ·  view source on GitHub ↗
({ error }: { error?: ClientError })

Source from the content-addressed store, hash-verified

7import { isConnectionError } from '../lib/errors';
8
9function 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
25export default FeedErrorScreen;

Callers

nothing calls this directly

Calls 2

isConnectionErrorFunction · 0.90
reloadMethod · 0.80

Tested by

no test coverage detected