Skip to content

Commit

Permalink
Refactor /devtools page to support metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
zackproser committed Oct 5, 2024
1 parent 4c97b60 commit d0cb462
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { CodeIcon } from 'lucide-react'
import { getLogoById } from '@/lib/logoImports'
import heroImage from '@/images/ai-hacking.webp'

export default function DevToolsIndex() {
export default function DevToolsPageClient() {
const router = useRouter();
const allTools = getTools();
const [filteredTools, setFilteredTools] = useState(allTools);
Expand Down
13 changes: 13 additions & 0 deletions src/app/devtools/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Metadata } from 'next'
import DevToolsPageClient from './DevToolsPageClient'
import { getTools } from '@/lib/getTools'

export const metadata: Metadata = {
title: 'AI-Assisted Developer Tools',
description: 'Compare different AI-assisted developer tools to find the best fit for your needs',
}

export default function DevToolsPage() {
const tools = getTools()
return <DevToolsPageClient initialTools={tools} />
}

0 comments on commit d0cb462

Please sign in to comment.