mock services

This commit is contained in:
Max Peintner
2024-10-29 08:42:48 +01:00
parent c6c15fe935
commit 4ccf0de4b6
2 changed files with 33 additions and 1 deletions

View File

@@ -1,5 +1,4 @@
zitadel/user/v2/user_service.proto zitadel/user/v2/user_service.proto
zitadel/org/v2/org_service.proto
zitadel/session/v2/session_service.proto zitadel/session/v2/session_service.proto
zitadel/settings/v2/settings_service.proto zitadel/settings/v2/settings_service.proto
zitadel/management.proto zitadel/management.proto

View File

@@ -0,0 +1,33 @@
"use client";
import { Boundary } from "@/components/boundary";
import { Button } from "@/components/button";
import { ThemeWrapper } from "@/components/theme-wrapper";
export default function GlobalError({
error,
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
return (
// global-error must include html and body tags
<html>
<body>
<ThemeWrapper branding={undefined}>
<Boundary labels={["Login Error"]} color="red">
<div className="space-y-4">
<div className="text-sm text-red-500 dark:text-red-500">
<span className="font-bold">Error:</span> {error?.message}
</div>
<div>
<Button onClick={() => reset()}>Try Again</Button>
</div>
</div>
</Boundary>
</ThemeWrapper>
</body>
</html>
);
}