@@ -116,14 +116,14 @@ export function PricingSection() {
116116 const t = useTranslations ( "about.pricing" )
117117 const tFeatures = useTranslations ( "about.pricing.features" )
118118
119- const features = [
120- tFeatures ( "unlimitedQuestions" ) ,
121- tFeatures ( "fullQuizAccess" ) ,
122- tFeatures ( "globalLeaderboard" ) ,
123- tFeatures ( "progressTracking" ) ,
124- tFeatures ( "communityChallenges" ) ,
125- tFeatures ( "mobileFriendly" )
126- ]
119+ const featureKeys = [
120+ "unlimitedQuestions" ,
121+ "fullQuizAccess" ,
122+ "globalLeaderboard" ,
123+ "progressTracking" ,
124+ "communityChallenges" ,
125+ "mobileFriendly"
126+ ] as const
127127
128128 return (
129129 < section className = "relative px-6 py-24 bg-background transition-colors duration-300 overflow-hidden" >
@@ -178,12 +178,12 @@ export function PricingSection() {
178178 < div className = "h-px w-full bg-gradient-to-r from-transparent via-border to-transparent mb-10" />
179179
180180 < div className = "grid grid-cols-1 md:grid-cols-2 gap-y-4 gap-x-12 text-left max-w-lg mx-auto mb-12" >
181- { features . map ( ( feature ) => (
182- < div key = { feature } className = "flex items-center gap-3" >
181+ { featureKeys . map ( ( featureKey ) => (
182+ < div key = { featureKey } className = "flex items-center gap-3" >
183183 < div className = "flex-shrink-0 h-5 w-5 rounded-full bg-[#2C7FFF]/10 flex items-center justify-center" >
184184 < Heart className = "h-3 w-3 text-[#2C7FFF] fill-[#2C7FFF]" />
185185 </ div >
186- < span className = "text-muted-foreground text-sm font-medium" > { feature } </ span >
186+ < span className = "text-muted-foreground text-sm font-medium" > { tFeatures ( featureKey ) } </ span >
187187 </ div >
188188 ) ) }
189189 </ div >
0 commit comments