@@ -28,15 +28,15 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
2828 { /* Banner and Logo Section */ }
2929 < Card className = "overflow-hidden" >
3030 { /* Banner */ }
31- < div
31+ < div
3232 className = "h-56 sm:h-64 bg-gradient-to-r from-primary/20 via-primary/10 to-primary/20"
3333 style = { company . banner_url ? {
3434 backgroundImage : `url(${ company . banner_url } )` ,
3535 backgroundSize : 'cover' ,
3636 backgroundPosition : 'center' ,
3737 } : undefined }
3838 />
39-
39+
4040 < CardHeader className = "relative -mt-20 pb-4" >
4141 < div className = "flex flex-col sm:flex-row items-start sm:items-end gap-4" >
4242 { /* Logo */ }
@@ -51,10 +51,10 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
5151 < div className = "flex-1 space-y-2" >
5252 < div className = "flex flex-wrap items-center gap-3" >
5353 < CardTitle className = "text-3xl" > { company . name } </ CardTitle >
54- < VerificationBadge
55- status = { company . verification_status }
56- size = "lg"
57- showLabel
54+ < VerificationBadge
55+ status = { company . verification_status }
56+ size = "lg"
57+ showLabel
5858 />
5959 </ div >
6060 { company . legal_name && company . legal_name !== company . name && (
@@ -120,7 +120,7 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
120120 < div className = "grid grid-cols-3 gap-4 text-center" >
121121 < div className = "space-y-1" >
122122 < p className = "text-2xl font-bold text-primary" >
123- { company . total_events || 0 }
123+ { company . approved_events_count ?? company . total_events ?? 0 }
124124 </ p >
125125 < p className = "text-xs text-muted-foreground" > Events Hosted</ p >
126126 </ div >
@@ -151,7 +151,7 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
151151 < Globe className = "h-4 w-4 mt-0.5 text-muted-foreground" />
152152 < div className = "flex-1 min-w-0" >
153153 < p className = "text-xs text-muted-foreground mb-1" > Website</ p >
154- < a
154+ < a
155155 href = { company . website }
156156 target = "_blank"
157157 rel = "noopener noreferrer"
@@ -168,7 +168,7 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
168168 < Mail className = "h-4 w-4 mt-0.5 text-muted-foreground" />
169169 < div className = "flex-1 min-w-0" >
170170 < p className = "text-xs text-muted-foreground mb-1" > Email</ p >
171- < a
171+ < a
172172 href = { `mailto:${ company . email } ` }
173173 className = "text-sm text-primary hover:underline break-all"
174174 >
@@ -183,7 +183,7 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
183183 < Phone className = "h-4 w-4 mt-0.5 text-muted-foreground" />
184184 < div className = "flex-1 min-w-0" >
185185 < p className = "text-xs text-muted-foreground mb-1" > Phone</ p >
186- < a
186+ < a
187187 href = { `tel:${ company . phone } ` }
188188 className = "text-sm text-primary hover:underline"
189189 >
@@ -230,7 +230,7 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
230230 < div className = "flex flex-wrap gap-2" >
231231 { company . socials . linkedin && (
232232 < Button variant = "outline" size = "sm" asChild >
233- < a
233+ < a
234234 href = { company . socials . linkedin }
235235 target = "_blank"
236236 rel = "noopener noreferrer"
@@ -241,7 +241,7 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
241241 ) }
242242 { company . socials . twitter && (
243243 < Button variant = "outline" size = "sm" asChild >
244- < a
244+ < a
245245 href = { company . socials . twitter }
246246 target = "_blank"
247247 rel = "noopener noreferrer"
@@ -252,7 +252,7 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
252252 ) }
253253 { company . socials . facebook && (
254254 < Button variant = "outline" size = "sm" asChild >
255- < a
255+ < a
256256 href = { company . socials . facebook }
257257 target = "_blank"
258258 rel = "noopener noreferrer"
@@ -263,7 +263,7 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
263263 ) }
264264 { company . socials . instagram && (
265265 < Button variant = "outline" size = "sm" asChild >
266- < a
266+ < a
267267 href = { company . socials . instagram }
268268 target = "_blank"
269269 rel = "noopener noreferrer"
0 commit comments