mirror of
https://github.com/johndoe6345789/postgres.git
synced 2026-04-24 13:55:00 +00:00
Fix sponsor configuration and add validation for logo dimensions
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,7 @@ export function SponsorSection({ sponsors, namespace }: SponsorSectionProps) {
|
||||
</div>
|
||||
|
||||
{sponsors
|
||||
.filter(sponsor => sponsor.logo.src)
|
||||
.filter(sponsor => sponsor.logo.src && sponsor.logo.width > 0 && sponsor.logo.height > 0)
|
||||
.map(sponsor => (
|
||||
<a
|
||||
key={sponsor.id}
|
||||
|
||||
@@ -51,19 +51,6 @@ export const sponsors: PageSponsorsConfig = {
|
||||
},
|
||||
translationKey: 'error_reporting_powered_by',
|
||||
},
|
||||
{
|
||||
id: 'codecov',
|
||||
name: 'Codecov',
|
||||
description: 'Code Coverage',
|
||||
url: 'https://about.codecov.io/codecov-free-trial/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo',
|
||||
logo: {
|
||||
src: '',
|
||||
alt: 'Codecov',
|
||||
width: 0,
|
||||
height: 0,
|
||||
},
|
||||
translationKey: 'coverage_powered_by',
|
||||
},
|
||||
],
|
||||
'portfolio-slug': [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user