Skip to content

Commit c55ff67

Browse files
committed
add image in additional agents
1 parent 2e008d0 commit c55ff67

18 files changed

+30
-87
lines changed

data/data.ts

Lines changed: 27 additions & 86 deletions
Large diffs are not rendered by default.

pages/agents/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Footer from '../../components/footer';
77
import Switcher from '../../components/switcher';
88
import {Agent} from '../../types/types';
99
import {additionalAgents} from '../../data/data';
10+
import Image from 'next/image';
1011

1112
export async function getStaticProps() {
1213
const res = await fetch('https://codeboltai.web.app/api/agents/list');
@@ -131,7 +132,8 @@ const AgentsPage = ({agents, additionalAgents}: {agents: Agent[], additionalAgen
131132
return (
132133
<div className="flex flex-col overflow-hidden bg-white dark:bg-slate-900" key={index}>
133134
<div className="rounded-md">
134-
<Avatar style={{ width: '4.3rem', height: '4.2rem' }} {...config} />
135+
{/* <Avatar style={{ width: '4.3rem', height: '4.2rem' }} {...config} /> */}
136+
<Image width={64} height={64} src={item.avatarSrc} />
135137
</div>
136138
<div className="py-5 px-3 pt-3">
137139
<h3 className="text-xl font-semibold">{item.title}</h3>
File renamed without changes.
File renamed without changes.

public/images/avatars/cloudeflare.png

25.9 KB
Loading

public/images/avatars/facebook.png

4.73 KB
Loading

0 commit comments

Comments
 (0)