Skip to content

Commit

Permalink
refromat store
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftyos committed Aug 5, 2024
1 parent 8f4894f commit 515f3c3
Show file tree
Hide file tree
Showing 5 changed files with 442 additions and 361 deletions.
14 changes: 9 additions & 5 deletions rnd/autogpt_builder/src/app/marketplace/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Suspense } from 'react';
import { notFound } from 'next/navigation';
import { Suspense } from "react";
import { notFound } from "next/navigation";
import MarketplaceAPI from "@/lib/marketplace-api";
import { AgentDetailResponse } from "@/lib/marketplace-api";
import AgentDetailContent from '@/components/AgentDetailContent';
import AgentDetailContent from "@/components/AgentDetailContent";

async function getAgentDetails(id: string): Promise<AgentDetailResponse> {
const apiUrl = process.env.AGPT_MARKETPLACE_URL;
Expand All @@ -18,7 +18,11 @@ async function getAgentDetails(id: string): Promise<AgentDetailResponse> {
}
}

export default async function AgentDetailPage({ params }: { params: { id: string } }) {
export default async function AgentDetailPage({
params,
}: {
params: { id: string };
}) {
let agent: AgentDetailResponse;

try {
Expand All @@ -32,4 +36,4 @@ export default async function AgentDetailPage({ params }: { params: { id: string
<AgentDetailContent agent={agent} />
</Suspense>
);
}
}
Loading

0 comments on commit 515f3c3

Please sign in to comment.