diff --git a/src/app/homepage/layout.tsx b/src/app/homepage/layout.tsx
index 2337e67..352199a 100644
--- a/src/app/homepage/layout.tsx
+++ b/src/app/homepage/layout.tsx
@@ -1,13 +1,10 @@
import {Outlet} from 'react-router-dom';
import {WorkspaceSidebar} from '@/components/layout/workspace-sidebar';
import {useQuery} from '@tanstack/react-query';
-import {workspaceList} from '@/client';
+import {workspaceList, type WorkspaceInfoResponse} from '@/client';
import {Spinner} from '@/components/ui/spinner';
-import {useNavigate} from 'react-router-dom';
export default function HomePageLayout() {
- const navigate = useNavigate();
-
const {data, isLoading} = useQuery({
queryKey: ['workspaceList'],
queryFn: async () => {
@@ -24,9 +21,8 @@ export default function HomePageLayout() {
);
}
- const workspace = data?.workspaces?.[0];
-
- if (!workspace) {
+ const first = data?.workspaces?.[0];
+ if (!first) {
return (
Loading workspace...
@@ -34,6 +30,18 @@ export default function HomePageLayout() {
);
}
+ const workspace: WorkspaceInfoResponse = {
+ slug: first.slug,
+ name: first.name,
+ description: first.description ?? null,
+ my_role: first.my_role,
+ avatar_url: first.avatar_url ?? null,
+ member_count: data?.member_count ?? 0,
+ project_count: data?.project_count ?? 0,
+ created_at: first.created_at,
+ updated_at: first.updated_at ?? first.created_at,
+ };
+
return (
diff --git a/src/app/network/page.tsx b/src/app/network/page.tsx
index 9d5116e..6f8d4df 100644
--- a/src/app/network/page.tsx
+++ b/src/app/network/page.tsx
@@ -1,5 +1,5 @@
import {LandingLayout} from '@/components/landing/landing-layout';
-import {Bot, Globe, Lock, Network, Users} from 'lucide-react';
+import {Bot, Lock, Network, Users} from 'lucide-react';
const STATS = [
{value: '12,400+', label: 'Active Agents'},
diff --git a/src/app/network/rooms/page.tsx b/src/app/network/rooms/page.tsx
index a7dd2ad..441bde0 100644
--- a/src/app/network/rooms/page.tsx
+++ b/src/app/network/rooms/page.tsx
@@ -1,6 +1,6 @@
import {LandingLayout} from '@/components/landing/landing-layout';
import {useNavigate} from 'react-router-dom';
-import {Bot, Globe, Users} from 'lucide-react';
+import {Bot, Users} from 'lucide-react';
const PUBLIC_ROOMS = [
{title: 'OSS Security Audit: actix-web', agents: 5, participants: 24, tags: ['security', 'rust', 'audit'], live: true},
diff --git a/src/app/solutions/governance/page.tsx b/src/app/solutions/governance/page.tsx
index 2b5787d..971e5fd 100644
--- a/src/app/solutions/governance/page.tsx
+++ b/src/app/solutions/governance/page.tsx
@@ -1,6 +1,6 @@
import {LandingLayout} from '@/components/landing/landing-layout';
import {useNavigate} from 'react-router-dom';
-import {Cpu, DollarSign, ShieldCheck} from 'lucide-react';
+import {Cpu} from 'lucide-react';
const LIMITS = [
{tier: 'Free', tokens: '100K', compute: '1x', agents: '3'},
diff --git a/src/components/landing/landing-sections.tsx b/src/components/landing/landing-sections.tsx
index cd1de5f..0b0b931 100644
--- a/src/components/landing/landing-sections.tsx
+++ b/src/components/landing/landing-sections.tsx
@@ -1,5 +1,5 @@
import {motion} from 'framer-motion';
-import {Bot, Brain, Code2, GitBranch, History, Layers, Network, ShieldCheck, Workflow, Zap} from 'lucide-react';
+import {Bot, Brain, Code2, GitBranch, History, Layers, Network, Workflow, Zap} from 'lucide-react';
const FEATURES = [
{