Skip to content

Commit 16f52d0

Browse files
fix lint
1 parent 9e05e51 commit 16f52d0

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

apps/web/app/(base-org)/developers/verifications/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Customers } from 'apps/web/src/components/Developers/Verifications/Cust
88
import { InfoCards } from 'apps/web/src/components/Developers/Verifications/InfoCards';
99
import { ValueProps } from 'apps/web/src/components/Developers/Verifications/ValueProps';
1010
import verification from 'apps/web/src/components/Developers/Verifications/verification.svg';
11-
import Image from 'next/image';
11+
import Image, { StaticImageData } from 'next/image';
1212

1313
export default async function Verifications() {
1414
return (
@@ -18,7 +18,7 @@ export default async function Verifications() {
1818
<div className="flex flex-col gap-2 pt-20 md:items-center">
1919
<div className="flex items-center gap-2 pb-6">
2020
<Image
21-
src={verification}
21+
src={verification as StaticImageData}
2222
alt="verification"
2323
width={32}
2424
height={32}

apps/web/src/components/Developers/Shared/Marquee.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { cn } from 'base-ui/utils/cn';
22
import { ComponentPropsWithoutRef } from 'react';
33

4-
interface MarqueeProps extends ComponentPropsWithoutRef<'div'> {
4+
export type MarqueeProps = ComponentPropsWithoutRef<'div'> & {
55
/**
66
* Optional CSS class name to apply custom styles
77
*/
@@ -30,7 +30,7 @@ interface MarqueeProps extends ComponentPropsWithoutRef<'div'> {
3030
* @default 4
3131
*/
3232
repeat?: number;
33-
}
33+
};
3434

3535
export function Marquee({
3636
className,
@@ -55,9 +55,9 @@ export function Marquee({
5555
>
5656
{Array(repeat)
5757
.fill(0)
58-
.map((_, i) => (
58+
.map(() => (
5959
<div
60-
key={i}
60+
key={crypto.randomUUID()}
6161
className={cn('flex shrink-0 justify-around [gap:var(--gap)]', {
6262
'animate-marquee flex-row': !vertical,
6363
'animate-marquee-vertical flex-col': vertical,

apps/web/src/components/Developers/Shared/ValueProp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Title from 'apps/web/src/components/base-org/typography/Title';
22
import { TitleLevel } from 'apps/web/src/components/base-org/typography/Title/types';
33
import Image, { type StaticImageData } from 'next/image';
44

5-
type ValuePropProps = {
5+
export type ValuePropProps = {
66
title: string;
77
description: string;
88
icon: StaticImageData;

apps/web/src/components/Developers/Verifications/InfoCards.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,26 @@ import { Card } from 'apps/web/src/components/Developers/Shared/Card';
22
import key from 'apps/web/src/components/Developers/Verifications/key.svg';
33
import identityCard from 'apps/web/src/components/Developers/Verifications/identityCard.svg';
44
import complianceProduct from 'apps/web/src/components/Developers/Verifications/complianceProduct.svg';
5-
import Image from 'next/image';
5+
import Image, { StaticImageData } from 'next/image';
66

77
const INFO_CARDS = [
88
{
9-
icon: <Image src={key} alt="key" width={32} height={32} className="h-8 w-8" />,
9+
icon: (
10+
<Image src={key as StaticImageData} alt="key" width={32} height={32} className="h-8 w-8" />
11+
),
1012
title: 'Access control',
1113
description:
1214
'Implement granular access control using verified Coinbase attestations. Perfect for gating features, content, or entire applications.',
1315
},
1416
{
1517
icon: (
16-
<Image src={identityCard} alt="identityCard" width={32} height={32} className="h-8 w-8" />
18+
<Image
19+
src={identityCard as StaticImageData}
20+
alt="identityCard"
21+
width={32}
22+
height={32}
23+
className="h-8 w-8"
24+
/>
1725
),
1826
title: 'Identity verification',
1927
description:
@@ -22,7 +30,7 @@ const INFO_CARDS = [
2230
{
2331
icon: (
2432
<Image
25-
src={complianceProduct}
33+
src={complianceProduct as StaticImageData}
2634
alt="complianceProduct"
2735
width={32}
2836
height={32}

apps/web/src/components/Developers/Verifications/ValueProps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function ValueProps() {
3535
</Title>
3636
</div>
3737
<div className="flex w-full flex-col gap-3">
38-
{VALUE_PROPS.map((item) => {
38+
{VALUE_PROPS.map((item: ValuePropProps) => {
3939
return (
4040
<ValueProp
4141
key={item.title}

0 commit comments

Comments
 (0)