mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-16 22:02:05 +00:00
mock services
This commit is contained in:
@@ -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
|
||||||
|
|||||||
33
apps/login/src/app/global-error.tsx
Normal file
33
apps/login/src/app/global-error.tsx
Normal 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>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user