diff --git a/frontend/hooks/useAgents.tsx b/frontend/hooks/useAgents.tsx
index 53a6606f8..c4848a5dd 100644
--- a/frontend/hooks/useAgents.tsx
+++ b/frontend/hooks/useAgents.tsx
@@ -9,7 +9,7 @@ export const useAgents = () => {
const response = await fetch("/api/test");
const data = await response.json();
console.log(data);
- }
+ }
const updateAgents = async () => {
console.log("Updating agents");
@@ -32,5 +32,5 @@ export const useAgents = () => {
return data;
};
- return { startAgent, agents, updateAgents, stopAgent };
+ return { startAgent, agents, updateAgents, stopAgent, testFlask };
};
diff --git a/frontend/pages/index.tsx b/frontend/pages/index.tsx
index 942d22534..7138e12c3 100644
--- a/frontend/pages/index.tsx
+++ b/frontend/pages/index.tsx
@@ -1,6 +1,7 @@
import { Layout } from "@/components/Layout/Layout";
import { Marketplace } from "@/components/Marketplace/Marketplace";
import { YourAgents } from "@/components/YourAgents/YourAgents";
+import { useAgents } from "@/hooks/useAgents";
import { useTabs } from "@/hooks/useTabs";
import { Button, Tabs, type TabsProps } from "antd";
import { useMemo } from "react";
@@ -8,26 +9,27 @@ import { useMemo } from "react";
export default function Home() {
-
- const tabs: TabsProps["items"] = useMemo(()=>[
- {
- key: "1",
- label: "Your Agents",
- children: ,
- },
- {
- key: "2",
- label: "Marketplace",
- children: ,
- },
- {
- key: "3",
- label: "Test",
- children: ,
- }
-],[]);
-
+
const { activeTab, setActiveTab } = useTabs();
+ const { testFlask } = useAgents();
+
+ const tabs: TabsProps["items"] = useMemo(() => [
+ {
+ key: "1",
+ label: "Your Agents",
+ children: ,
+ },
+ {
+ key: "2",
+ label: "Marketplace",
+ children: ,
+ },
+ {
+ key: "3",
+ label: "Test",
+ children: ,
+ }
+ ], []);