Skip to content

Commit 2cb5ede

Browse files
ericyangpanclaude
andcommitted
feat(components): add blog support to product links
- Added blog field to CommunityUrls interface and ProductLinks - Updated docsUrl and applyKeyUrl props to accept string | null 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 0b06dc4 commit 2cb5ede

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/product/ProductHero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export interface ProductHeroProps {
4040
// Links
4141
websiteUrl?: string
4242
githubUrl?: string
43-
docsUrl?: string
43+
docsUrl?: string | null
4444
downloadUrl?: string
45-
applyKeyUrl?: string // For providers
45+
applyKeyUrl?: string | null // For providers
4646

4747
// Additional URLs (for models)
4848
additionalUrls?: {

src/components/product/ProductLinks.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface CommunityUrls {
1616
youtube?: string
1717
discord?: string
1818
reddit?: string
19+
blog?: string
1920
}
2021

2122
export interface ProductLinksProps {
@@ -46,6 +47,7 @@ export function ProductLinks({ resourceUrls, communityUrls }: ProductLinksProps)
4647
'youtube',
4748
'discord',
4849
'reddit',
50+
'blog',
4951
] as const
5052

5153
// Generate link configurations for resourceUrls by iterating over keys

0 commit comments

Comments
 (0)