@@ -4,7 +4,8 @@ import { account, ID } from "../appwrite";
44import type { Models } from "appwrite" ;
55
66const LoginPage = ( ) => {
7- const [ loggedInUser , setLoggedInUser ] = useState < Models . User < Models . Preferences > | null > ( null ) ;
7+ const [ loggedInUser , setLoggedInUser ] =
8+ useState < Models . User < Models . Preferences > | null > ( null ) ;
89 const [ email , setEmail ] = useState ( "" ) ;
910 const [ password , setPassword ] = useState ( "" ) ;
1011 const [ name , setName ] = useState ( "" ) ;
@@ -73,7 +74,8 @@ const LoginPage = () => {
7374 Welcome!
7475 </ h2 >
7576 < p className = "text-gray-600 mb-6" >
76- Logged in as < span className = "font-semibold" > { loggedInUser . name } </ span >
77+ Logged in as{ " " }
78+ < span className = "font-semibold" > { loggedInUser . name } </ span >
7779 </ p >
7880 < button
7981 type = "button"
@@ -108,10 +110,13 @@ const LoginPage = () => {
108110 { error }
109111 </ div >
110112 ) }
111-
113+
112114 < form className = "space-y-6" >
113115 < div >
114- < label htmlFor = "email" className = "block text-sm font-medium text-gray-700" >
116+ < label
117+ htmlFor = "email"
118+ className = "block text-sm font-medium text-gray-700"
119+ >
115120 Email address
116121 </ label >
117122 < div className = "mt-1" >
@@ -130,7 +135,10 @@ const LoginPage = () => {
130135 </ div >
131136
132137 < div >
133- < label htmlFor = "password" className = "block text-sm font-medium text-gray-700" >
138+ < label
139+ htmlFor = "password"
140+ className = "block text-sm font-medium text-gray-700"
141+ >
134142 Password
135143 </ label >
136144 < div className = "mt-1" >
@@ -149,7 +157,10 @@ const LoginPage = () => {
149157 </ div >
150158
151159 < div >
152- < label htmlFor = "name" className = "block text-sm font-medium text-gray-700" >
160+ < label
161+ htmlFor = "name"
162+ className = "block text-sm font-medium text-gray-700"
163+ >
153164 Full Name
154165 </ label >
155166 < div className = "mt-1" >
@@ -178,7 +189,7 @@ const LoginPage = () => {
178189 >
179190 { loading ? "Signing in..." : "Sign in" }
180191 </ button >
181-
192+
182193 < button
183194 type = "button"
184195 onClick = { register }
@@ -195,4 +206,4 @@ const LoginPage = () => {
195206 ) ;
196207} ;
197208
198- export default LoginPage ;
209+ export default LoginPage ;
0 commit comments