Skip to content

Commit 9c2c338

Browse files
committed
style: update logo URL handling in OrgDetails and Organizations components
1 parent 0a982ca commit 9c2c338

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/organization/OrganizationDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function OrgDetails({ org }: OrgDetailsProps) {
3131
<div className="relative w-full max-w-xs h-32 sm:h-40 md:h-48 rounded-lg overflow-hidden flex-shrink-0">
3232
{org.logo?.url ? (
3333
<Image
34-
src={org.logo.url}
34+
src={new URL(org.logo.url).pathname}
3535
alt={`${org.name} logo`}
3636
fill
3737
className="object-contain"

src/components/organization/Organizations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function Orgs({ orgs, title }: OrgsProps) {
5959
<div className="relative w-24 h-24 md:w-32 md:h-32 rounded-lg overflow-hidden bg-gray-800 ring-2 ring-gray-600 flex items-center justify-center">
6060
<Image
6161
className="object-contain p-2 transition-transform hover:scale-105"
62-
src={o.logo.url}
62+
src={new URL(o.logo.url).pathname}
6363
alt={`${o.name} logo`}
6464
fill
6565
/>

0 commit comments

Comments
 (0)