@@ -40,7 +40,7 @@ function UnauthenticatedApp() {
4040 Welcome to Firebase UI, choose an example screen below to get started!
4141 </ p >
4242 </ div >
43- < div className = "border border-neutral-800 rounded divide-y divide-neutral-800 overflow-hidden" >
43+ < div className = "border border-neutral-200 dark:border-neutral- 800 rounded divide-y divide-neutral-200 dark: divide-neutral-800 overflow-hidden" >
4444 { routes . map ( ( route ) => (
4545 < Link
4646 key = { route . path }
@@ -51,7 +51,7 @@ function UnauthenticatedApp() {
5151 < h2 className = "font-medium text-sm" > { route . name } </ h2 >
5252 < p className = "text-xs text-gray-400 dark:text-gray-300" > { route . description } </ p >
5353 </ div >
54- < div >
54+ < div className = "text-neutral-600 dark:text-neutral-400" >
5555 < span className = "text-xl" > →</ span >
5656 </ div >
5757 </ Link >
@@ -68,27 +68,32 @@ function AuthenticatedApp() {
6868
6969 return (
7070 < div className = "max-w-sm mx-auto pt-36 space-y-6 pb-36" >
71- < div className = "border border-neutral-800 rounded p-4 space-y-4" >
71+ < div className = "border border-neutral-200 dark:border-neutral- 800 rounded-md p-4 space-y-4" >
7272 < h1 className = "text-md font-medium" > Welcome, { user . displayName || user . email || user . phoneNumber } </ h1 >
73- { user . emailVerified ? (
74- < div className = "text-green-500" > Email verified</ div >
75- ) : (
76- < button
77- className = "bg-red-500 text-white px-3 py-1.5 rounded text-sm"
78- onClick = { async ( ) => {
79- try {
80- await sendEmailVerification ( user ) ;
81- alert ( "Email verification sent, please check your email" ) ;
82- } catch ( error ) {
83- console . error ( error ) ;
84- alert ( "Error sending email verification, check console" ) ;
85- }
86- } }
87- >
88- Verify Email →
89- </ button >
90- ) }
91- < hr className = "opacity-20" />
73+ { user . email ? (
74+ < >
75+ { user . emailVerified ? (
76+ < div className = "text-green-500" > Email verified</ div >
77+ ) : (
78+ < button
79+ className = "bg-red-500 text-white px-3 py-1.5 rounded text-sm"
80+ onClick = { async ( ) => {
81+ try {
82+ await sendEmailVerification ( user ) ;
83+ alert ( "Email verification sent, please check your email" ) ;
84+ } catch ( error ) {
85+ console . error ( error ) ;
86+ alert ( "Error sending email verification, check console" ) ;
87+ }
88+ } }
89+ >
90+ Verify Email →
91+ </ button >
92+ ) }
93+ </ >
94+ ) : null }
95+
96+ < hr className = "opacity-30" />
9297 < h2 className = "text-sm font-medium" > Multi-factor Authentication</ h2 >
9398 { mfa . enrolledFactors . map ( ( factor ) => {
9499 return (
@@ -105,7 +110,7 @@ function AuthenticatedApp() {
105110 >
106111 Add MFA Factor →
107112 </ button >
108- < hr className = "opacity-20 " />
113+ < hr className = "opacity-30 " />
109114 < button
110115 className = "bg-blue-500 text-white px-3 py-1.5 rounded text-sm"
111116 onClick = { async ( ) => await signOut ( auth ) }
0 commit comments