({ onRetry }: { onRetry: () => void })
| 88 | ); |
| 89 | |
| 90 | const SetupStatusErrorCard = ({ onRetry }: { onRetry: () => void }) => ( |
| 91 | <div className="flex min-h-screen items-center justify-center bg-background p-6"> |
| 92 | <Card className="w-full max-w-md"> |
| 93 | <CardHeader> |
| 94 | <CardTitle>Can't reach the server</CardTitle> |
| 95 | <CardDescription> |
| 96 | Executor couldn't check this instance's setup state. Make sure the server is running, then |
| 97 | retry. |
| 98 | </CardDescription> |
| 99 | </CardHeader> |
| 100 | <CardContent> |
| 101 | <Button type="button" onClick={onRetry}> |
| 102 | Retry |
| 103 | </Button> |
| 104 | </CardContent> |
| 105 | </Card> |
| 106 | </div> |
| 107 | ); |
| 108 | |
| 109 | function AuthGate({ children }: { children: ReactNode }) { |
| 110 | const auth = useAuth(); |
nothing calls this directly
no outgoing calls
no test coverage detected