|
@@ -1,9 +1,3 @@
|
|
|
-// ---------------------------------------------------------------------------
|
|
|
|
|
-// Folder: components/auth
|
|
|
|
|
-// File: AuthProvider.jsx
|
|
|
|
|
-// Relative Path: components/auth/AuthProvider.jsx
|
|
|
|
|
-// ---------------------------------------------------------------------------
|
|
|
|
|
-
|
|
|
|
|
"use client";
|
|
"use client";
|
|
|
|
|
|
|
|
import React from "react";
|
|
import React from "react";
|
|
@@ -99,7 +93,7 @@ export default function AuthProvider({ children }) {
|
|
|
setAuth({
|
|
setAuth({
|
|
|
status: "error",
|
|
status: "error",
|
|
|
user: null,
|
|
user: null,
|
|
|
- error: "Unable to verify your session. Please try again.",
|
|
|
|
|
|
|
+ error: "Sitzung konnte nicht geprüft werden. Bitte erneut versuchen.",
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -122,7 +116,7 @@ export default function AuthProvider({ children }) {
|
|
|
<div className="mx-auto flex min-h-screen max-w-md items-center justify-center">
|
|
<div className="mx-auto flex min-h-screen max-w-md items-center justify-center">
|
|
|
<div className="flex items-center gap-3 text-sm text-muted-foreground">
|
|
<div className="flex items-center gap-3 text-sm text-muted-foreground">
|
|
|
<Loader2 className="h-4 w-4 animate-spin" />
|
|
<Loader2 className="h-4 w-4 animate-spin" />
|
|
|
- <span>Checking session...</span>
|
|
|
|
|
|
|
+ <span>Sitzung wird geprüft…</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -137,7 +131,7 @@ export default function AuthProvider({ children }) {
|
|
|
<div className="mx-auto flex min-h-screen max-w-md items-center justify-center">
|
|
<div className="mx-auto flex min-h-screen max-w-md items-center justify-center">
|
|
|
<div className="w-full space-y-4">
|
|
<div className="w-full space-y-4">
|
|
|
<Alert variant="destructive">
|
|
<Alert variant="destructive">
|
|
|
- <AlertTitle>Session check failed</AlertTitle>
|
|
|
|
|
|
|
+ <AlertTitle>Sitzungsprüfung fehlgeschlagen</AlertTitle>
|
|
|
<AlertDescription>{auth.error}</AlertDescription>
|
|
<AlertDescription>{auth.error}</AlertDescription>
|
|
|
</Alert>
|
|
</Alert>
|
|
|
|
|
|
|
@@ -146,7 +140,7 @@ export default function AuthProvider({ children }) {
|
|
|
className="w-full"
|
|
className="w-full"
|
|
|
onClick={() => setRetryTick((n) => n + 1)}
|
|
onClick={() => setRetryTick((n) => n + 1)}
|
|
|
>
|
|
>
|
|
|
- Retry
|
|
|
|
|
|
|
+ Erneut versuchen
|
|
|
</Button>
|
|
</Button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -163,7 +157,7 @@ export default function AuthProvider({ children }) {
|
|
|
<div className="mx-auto flex min-h-screen max-w-md items-center justify-center">
|
|
<div className="mx-auto flex min-h-screen max-w-md items-center justify-center">
|
|
|
<div className="flex items-center gap-3 text-sm text-muted-foreground">
|
|
<div className="flex items-center gap-3 text-sm text-muted-foreground">
|
|
|
<Loader2 className="h-4 w-4 animate-spin" />
|
|
<Loader2 className="h-4 w-4 animate-spin" />
|
|
|
- <span>Redirecting to login...</span>
|
|
|
|
|
|
|
+ <span>Weiterleitung zum Login…</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|