Skip to content

Commit eba2791

Browse files
ericyangpanclaude
andcommitted
refactor: remove pricing display from model pages and product hero
- Remove pricing prop and display logic from ProductHero component - Remove unused client-side directive (no longer needed without pricing state) - Remove pricing pass-through from model detail page 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b9aa650 commit eba2791

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/app/[locale]/models/[slug]/page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ export default async function ModelPage({
127127
},
128128
].filter(Boolean) as { label: string; value: string }[]
129129
}
130-
pricing={
131-
pricingDisplayForSchema
132-
? { label: t('labels.pricing'), value: pricingDisplayForSchema }
133-
: undefined
134-
}
135130
additionalUrls={
136131
[
137132
model.docsUrl && {

src/components/product/ProductHero.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use client'
2-
31
import { useTranslations } from 'next-intl'
42
import React from 'react'
53
import { VerifiedBadge } from '@/components/VerifiedBadge'
@@ -82,7 +80,6 @@ export function ProductHero({
8280
platforms,
8381
showAllPlatforms = false,
8482
additionalInfo,
85-
pricing,
8683
type,
8784
websiteUrl,
8885
githubUrl,
@@ -235,18 +232,6 @@ export function ProductHero({
235232
</div>
236233
)}
237234

238-
{/* Pricing (for display in hero) */}
239-
{pricing && (
240-
<div className="mb-[var(--spacing-lg)]">
241-
<div className="inline-flex items-center gap-[var(--spacing-xs)] px-[var(--spacing-md)] py-[var(--spacing-sm)] bg-[var(--color-hover)] border border-[var(--color-border)]">
242-
<span className="text-xs text-[var(--color-text-muted)] uppercase tracking-wider font-medium">
243-
{pricing.label}:
244-
</span>
245-
<span className="text-sm font-medium">{pricing.value}</span>
246-
</div>
247-
</div>
248-
)}
249-
250235
{/* Type (for providers) */}
251236
{type && labels?.typeValue && (
252237
<div className="flex justify-center mb-[var(--spacing-lg)]">

0 commit comments

Comments
 (0)