@@ -4,8 +4,10 @@ import type { SubmitHandler, FieldValues } from "react-hook-form";
44import { Button } from "@/components/ui/button" ;
55import { TextInput } from "@/components/admin/text-input" ;
66import { Notification } from "@/components/admin/notification" ;
7+ import { useConfigurationContext } from "@/atomic-crm/root/ConfigurationContext.tsx" ;
78
89export const LoginPage = ( props : { redirectTo ?: string } ) => {
10+ const { darkModeLogo, title } = useConfigurationContext ( ) ;
911 const { redirectTo } = props ;
1012 const [ loading , setLoading ] = useState ( false ) ;
1113 const login = useLogin ( ) ;
@@ -46,38 +48,14 @@ export const LoginPage = (props: { redirectTo?: string }) => {
4648 < div className = "relative hidden h-full flex-col bg-muted p-10 text-white dark:border-r lg:flex" >
4749 < div className = "absolute inset-0 bg-zinc-900" />
4850 < div className = "relative z-20 flex items-center text-lg font-medium" >
49- < svg
50- xmlns = "http://www.w3.org/2000/svg"
51- viewBox = "0 0 24 24"
52- fill = "none"
53- stroke = "currentColor"
54- strokeWidth = "2"
55- strokeLinecap = "round"
56- strokeLinejoin = "round"
57- className = "mr-2 h-6 w-6"
58- >
59- < path d = "M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3" />
60- </ svg >
61- Acme Inc
62- </ div >
63- < div className = "relative z-20 mt-auto" >
64- < blockquote className = "space-y-2" >
65- < p className = "text-lg" >
66- “Shadcn Admin Kit has allowed us to quickly create and
67- evolve a powerful tool that otherwise would have taken months of
68- time and effort to develop.”
69- </ p >
70- < footer className = "text-sm" > John Doe</ footer >
71- </ blockquote >
51+ < img className = "h-6 mr-2" src = { darkModeLogo } alt = { title } />
52+ { title }
7253 </ div >
7354 </ div >
7455 < div className = "lg:p-8" >
7556 < div className = "mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]" >
7657 < div className = "flex flex-col space-y-2 text-center" >
7758 < h1 className = "text-2xl font-semibold tracking-tight" > Sign in</ h1 >
78- < p className = "text-sm leading-none text-muted-foreground" >
79- 80- </ p >
8159 </ div >
8260 < Form className = "space-y-8" onSubmit = { handleSubmit } >
8361 < TextInput
0 commit comments