File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 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" ;
24import { cn } from "@/lib/utils" ;
3- import { Loading } from "@/components/admin/loading" ;
45import { 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" } ) }
You can’t perform that action at this time.
0 commit comments