Skip to content

Commit 3cff4f7

Browse files
committed
Update shadcn-admin-kit AuthError.
1 parent 14c07ca commit 3cff4f7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/components/admin/authentication.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { useHandleAuthCallback, useTranslate } from "ra-core";
1+
import { Link } from "react-router";
2+
import { Translate, useHandleAuthCallback, useTranslate } from "ra-core";
3+
import { CircleAlert, LockIcon } from "lucide-react";
24
import { cn } from "@/lib/utils";
3-
import { Loading } from "@/components/admin/loading";
45
import { Button } from "@/components/ui/button";
5-
import { LockIcon } from "lucide-react";
6-
import { Link } from "react-router";
6+
import { Loading } from "@/components/admin/loading";
77

88
/**
99
* A standalone page to be used in a route called by external authentication services (e.g. OAuth)
@@ -55,8 +55,11 @@ export const AuthError = (props: AuthErrorProps) => {
5555
)}
5656
{...rest}
5757
>
58-
<h1>{translate(title, { _: title })}</h1>
59-
<div>{translate(message, { _: message })}</div>
58+
<h1 className="flex items-center text-3xl my-5 gap-3" role="alert">
59+
<CircleAlert className="w-2em h-2em" />
60+
<Translate i18nKey={title} />
61+
</h1>
62+
<p className="my-5">{translate(message, { _: message })}</p>
6063
<Button asChild>
6164
<Link to="/login">
6265
<LockIcon /> {translate("ra.auth.sign_in", { _: "Sign in" })}

0 commit comments

Comments
 (0)