@@ -8,39 +8,32 @@ interface EmailVerificationWarningProps {
88
99export const EmailVerificationWarning = ( { email, onResendVerification, isLoading } : EmailVerificationWarningProps ) => {
1010 return (
11- < div className = "relative overflow-hidden rounded-xl border border-amber-500/20 bg-[#2a2417] p-5 shadow-md" >
12- < div className = "relative flex items-start gap-4" >
13- < div className = "shrink-0 rounded-lg bg-amber-400/10 p-2 text-amber-400" >
14- < Icon name = "alert-triangle" height = { 20 } width = { 20 } />
15- </ div >
16-
17- < div className = "grow" >
18- < h3 className = "mb-2 text-lg font-semibold text-amber-100" > Verify Your Email Address</ h3 >
19- < p className = "mb-4 text-sm text-[#e0d5bc]" >
20- Please verify your email address to access all Pro features and API capabilities. We've sent a verification
21- link to < span className = "font-medium text-amber-100" > { email } </ span > .
11+ < div className = "relative overflow-hidden rounded-lg border border-amber-500/20 bg-amber-500/5 px-3 py-2.5 sm:px-4 sm:py-3" >
12+ < div className = "relative flex items-center justify-between gap-3" >
13+ < div className = "flex items-center gap-2.5" >
14+ < Icon name = "alert-triangle" height = { 16 } width = { 16 } className = "shrink-0 text-amber-400" />
15+ < p className = "text-xs text-amber-100 sm:text-sm" >
16+ Verify your email < span className = "font-medium" > { email } </ span > to subscribe
2217 </ p >
23-
24- < div className = "flex flex-wrap gap-3" >
25- < button
26- className = "flex items-center gap-2 rounded-lg bg-amber-500 px-4 py-2 text-sm font-medium text-white shadow-md transition-colors hover:bg-amber-600"
27- onClick = { onResendVerification }
28- disabled = { isLoading }
29- >
30- { isLoading ? (
31- < >
32- < span className = "h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white" > </ span >
33- Sending...
34- </ >
35- ) : (
36- < >
37- < Icon name = "mail" height = { 14 } width = { 14 } />
38- Resend Verification Email
39- </ >
40- ) }
41- </ button >
42- </ div >
4318 </ div >
19+
20+ < button
21+ className = "flex shrink-0 items-center gap-1.5 rounded-md bg-amber-500/20 px-2.5 py-1.5 text-xs font-medium text-amber-100 transition-colors hover:bg-amber-500/30 disabled:opacity-50 sm:gap-2 sm:px-3"
22+ onClick = { onResendVerification }
23+ disabled = { isLoading }
24+ >
25+ { isLoading ? (
26+ < >
27+ < span className = "h-3 w-3 animate-spin rounded-full border-2 border-amber-100/30 border-t-amber-100" > </ span >
28+ Sending...
29+ </ >
30+ ) : (
31+ < >
32+ < Icon name = "mail" height = { 12 } width = { 12 } />
33+ < span className = "hidden sm:inline" > Resend</ span >
34+ </ >
35+ ) }
36+ </ button >
4437 </ div >
4538 </ div >
4639 )
0 commit comments