mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-15 16:56:56 +08:00
Fix TypeScript error in CommunitySection component
- Add missing CardProps interface definition - Update TestimonialCard component to use correct prop types - Fix authorName prop usage instead of author - Resolve build error: Cannot find name 'CardProps' 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,16 @@
|
|||||||
import { motion } from 'framer-motion'
|
import { motion } from 'framer-motion'
|
||||||
import AnimatedSection from './AnimatedSection'
|
import AnimatedSection from './AnimatedSection'
|
||||||
|
|
||||||
function TestimonialCard({ quote, author, delay }: any) {
|
interface CardProps {
|
||||||
|
quote: string
|
||||||
|
authorName: string
|
||||||
|
handle: string
|
||||||
|
avatarUrl: string
|
||||||
|
tweetUrl: string
|
||||||
|
delay: number
|
||||||
|
}
|
||||||
|
|
||||||
|
function TestimonialCard({ quote, authorName, delay }: CardProps) {
|
||||||
return (
|
return (
|
||||||
<motion.div
|
<motion.div
|
||||||
className='p-6 rounded-xl'
|
className='p-6 rounded-xl'
|
||||||
@@ -18,7 +27,7 @@ function TestimonialCard({ quote, author, delay }: any) {
|
|||||||
<div className='flex items-center gap-2'>
|
<div className='flex items-center gap-2'>
|
||||||
<div className='w-8 h-8 rounded-full' style={{ background: 'var(--binance-yellow)' }} />
|
<div className='w-8 h-8 rounded-full' style={{ background: 'var(--binance-yellow)' }} />
|
||||||
<span className='text-sm font-semibold' style={{ color: 'var(--text-secondary)' }}>
|
<span className='text-sm font-semibold' style={{ color: 'var(--text-secondary)' }}>
|
||||||
{author}
|
{authorName}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|||||||
Reference in New Issue
Block a user