Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Commit 0f1c58c

Browse files
fix lint
1 parent 330e600 commit 0f1c58c

File tree

11 files changed

+44
-31
lines changed

11 files changed

+44
-31
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { OnchainActions } from 'apps/web/src/components/Developers/AgentKit/Onch
1212
import { Possibilities } from 'apps/web/src/components/Developers/AgentKit/Possibilities';
1313
import { Testmonials } from 'apps/web/src/components/Developers/AgentKit/Testimonials';
1414
import { CtaBanner } from 'apps/web/src/components/Developers/Shared/CtaBanner';
15-
import Image from 'next/image';
15+
import Image, { StaticImageData } from 'next/image';
1616

1717
export default async function AgentKit() {
1818
return (
@@ -21,7 +21,13 @@ export default async function AgentKit() {
2121
{/* Header */}
2222
<div className="flex flex-col items-center gap-1 pt-20">
2323
<div className="flex items-center gap-2 pb-6">
24-
<Image src={agentkit} alt="agentkit" width={32} height={32} className="h-5 w-5" />
24+
<Image
25+
src={agentkit as StaticImageData}
26+
alt="agentkit"
27+
width={32}
28+
height={32}
29+
className="h-5 w-5"
30+
/>
2531
<Title level={TitleLevel.Title3} className="text-[#E66020]">
2632
AgentKit
2733
</Title>

apps/web/src/components/Developers/AgentKit/Demo.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const MESSAGES: Item[] = [
5050

5151
const MESSAGE_ARRAY = Array.from({ length: 10 }, () => MESSAGES).flat();
5252

53-
const Message = ({ text, content, type }: Item) => {
53+
function Message({ text, content, type }: Item) {
5454
const isAgent = type === 'agent';
5555
return (
5656
<figure
@@ -75,7 +75,7 @@ const Message = ({ text, content, type }: Item) => {
7575
</div>
7676
</figure>
7777
);
78-
};
78+
}
7979

8080
export function Demo() {
8181
return (
@@ -91,8 +91,8 @@ export function Demo() {
9191
className={cn('relative flex h-[500px] w-full flex-col overflow-hidden rounded-lg p-6 ')}
9292
>
9393
<AnimatedList>
94-
{MESSAGE_ARRAY.map((item, idx) => (
95-
<Message {...item} key={idx} />
94+
{MESSAGE_ARRAY.map((item) => (
95+
<Message {...item} key={item.text} />
9696
))}
9797
</AnimatedList>
9898
</div>

apps/web/src/components/Developers/AgentKit/Frameworks.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import framework from 'apps/web/src/components/Developers/AgentKit/framework.svg
22
import eliza from 'apps/web/src/components/Developers/AgentKit/eliza.svg';
33
import robot from 'apps/web/src/components/Developers/AgentKit/robot.svg';
44
import cImage from 'apps/web/src/components/Developers/AgentKit/c.png';
5-
import Image from 'next/image';
5+
import Image, { StaticImageData } from 'next/image';
66
import Title from 'apps/web/src/components/base-org/typography/Title';
77
import { TitleLevel } from 'apps/web/src/components/base-org/typography/Title/types';
88

@@ -19,16 +19,16 @@ export function Frameworks() {
1919
</div>
2020
<div className="flex w-full gap-6">
2121
<div className="flex-0 flex aspect-square h-40 w-40 items-center justify-center rounded-xl bg-dark-palette-backgroundAlternate">
22-
<Image src={framework} alt="framework" width={106} height={54} />
22+
<Image src={framework as StaticImageData} alt="framework" width={106} height={54} />
2323
</div>
2424
<div className="flex-0 flex aspect-square h-40 w-40 items-center justify-center rounded-xl bg-dark-palette-backgroundAlternate">
25-
<Image src={eliza} alt="eliza" width={128} height={22} />
25+
<Image src={eliza as StaticImageData} alt="eliza" width={128} height={22} />
2626
</div>
2727
<div className="flex flex-1 items-center justify-center rounded-xl bg-[#330D00]">
28-
<Image src={robot} alt="robot" width={127} height={126} />
28+
<Image src={robot as StaticImageData} alt="robot" width={127} height={126} />
2929
</div>
3030
<div className="flex-0 flex aspect-square h-40 w-40 items-center justify-center rounded-xl bg-dark-palette-backgroundAlternate">
31-
<Image src={cImage} alt="cImage" width={70} height={70} />
31+
<Image src={cImage as StaticImageData} alt="cImage" width={70} height={70} />
3232
</div>
3333
<div className="flex-0 flex aspect-square h-40 w-40 items-center justify-center rounded-xl bg-dark-palette-backgroundAlternate">
3434
<Title level={TitleLevel.Title1} className="text-palette-foregroundMuted">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { Card } from 'apps/web/src/components/Developers/Shared/Card';
1+
import { Card, CardProps } from 'apps/web/src/components/Developers/Shared/Card';
22
import dropsActive from 'apps/web/src/components/Developers/AgentKit/dropsActive.svg';
33
import blockchain from 'apps/web/src/components/Developers/AgentKit/blockchain.svg';
44
import metaverse from 'apps/web/src/components/Developers/AgentKit/metaverse.svg';
55
import Image from 'next/image';
66

7-
const INFO_CARDS = [
7+
const INFO_CARDS: CardProps[] = [
88
{
99
icon: <Image src={dropsActive} alt="dropsActive" width={32} height={32} className="h-8 w-8" />,
1010
title: 'No coding required',

apps/web/src/components/Developers/AgentKit/OnchainActions.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { TitleLevel } from 'apps/web/src/components/base-org/typography/Title/ty
55
import { AnimatedList } from 'apps/web/src/components/Developers/Shared/AnimatedList';
66
import { cn } from 'base-ui/utils/cn';
77

8-
type Action = {
8+
type ActionItem = {
99
title: string;
1010
};
1111

12-
const ACTIONS: Action[] = [
12+
const ACTIONS: ActionItem[] = [
1313
{
1414
title: 'Deploy an NFT',
1515
},
@@ -24,7 +24,7 @@ const ACTIONS: Action[] = [
2424
},
2525
];
2626

27-
const Action = ({ title }: Action) => {
27+
function Action({ title }: ActionItem) {
2828
return (
2929
<figure
3030
className={cn(
@@ -41,13 +41,15 @@ const Action = ({ title }: Action) => {
4141
</div>
4242
</figure>
4343
);
44-
};
44+
}
4545

4646
export function OnchainActions({ className }: { className?: string }) {
4747
return (
4848
<div className="flex w-full flex-col">
4949
<div className="p-4">
50-
<Title level={TitleLevel.Title1}>All onchain actions at your agent's fingertips.</Title>
50+
<Title level={TitleLevel.Title1}>
51+
All onchain actions at your agent&apos;s fingertips.
52+
</Title>
5153
</div>
5254
<div
5355
className={cn('bg-background relative flex w-full flex-col overflow-hidden p-4', className)}

apps/web/src/components/Developers/AgentKit/Possibilities.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Title from 'apps/web/src/components/base-org/typography/Title';
22
import { TitleLevel } from 'apps/web/src/components/base-org/typography/Title/types';
3-
import { Card } from 'apps/web/src/components/Developers/Shared/Card';
3+
import { Card, CardProps } from 'apps/web/src/components/Developers/Shared/Card';
44

5-
const POSSIBILITIES = [
5+
const POSSIBILITIES: CardProps[] = [
66
{
77
title: 'Onchain Assistants',
88
description:
@@ -45,7 +45,12 @@ export function Possibilities() {
4545
<div className="grid grid-cols-3 gap-20">
4646
{POSSIBILITIES.map((pos) => {
4747
return (
48-
<Card className="text-[#E66020]" title={pos.title} description={pos.description} />
48+
<Card
49+
key={pos.title}
50+
className="text-[#E66020]"
51+
title={pos.title}
52+
description={pos.description}
53+
/>
4954
);
5055
})}
5156
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { ValueProp } from 'apps/web/src/components/Developers/Shared/ValueProp';
1+
import { ValueProp, ValuePropProps } from 'apps/web/src/components/Developers/Shared/ValueProp';
22
import coinbase from 'apps/web/src/components/Developers/Verifications/coinbase.svg';
33
import globe from 'apps/web/src/components/Developers/Verifications/globe.svg';
44
import coinbaseOne from 'apps/web/src/components/Developers/Verifications/coinbaseOne.svg';
55

6-
const VALUE_PROPS = [
6+
const VALUE_PROPS: ValuePropProps[] = [
77
{
88
title: 'Verified Account',
99
description: 'A Coinbase user with a valid Coinbase trading account. ',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ export function AnimatedListItem({ children }: { children: React.ReactNode }) {
1818
);
1919
}
2020

21-
export interface AnimatedListProps extends ComponentPropsWithoutRef<'div'> {
21+
export type AnimatedListProps = ComponentPropsWithoutRef<'div'> & {
2222
children: React.ReactNode;
2323
delay?: number;
24-
}
24+
};
2525

2626
export const AnimatedList = React.memo(
2727
({ children, className, delay = 1000, ...props }: AnimatedListProps) => {

apps/web/src/components/Developers/Shared/Card.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 { ReactNode } from 'react';
44

5-
type CardProps = {
5+
export type CardProps = {
66
icon?: ReactNode;
77
title: string;
88
description: string;

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((item, i) => (
5959
<div
60-
key={i}
60+
key={item?.toString()}
6161
className={cn('flex shrink-0 justify-around [gap:var(--gap)]', {
6262
'animate-marquee flex-row': !vertical,
6363
'animate-marquee-vertical flex-col': vertical,

0 commit comments

Comments
 (0)