From 290a1ac892cfb1ab54c97a3826ef81a73ebf62bd Mon Sep 17 00:00:00 2001 From: icy Date: Mon, 3 Nov 2025 20:25:07 +0800 Subject: [PATCH] Fix TypeScript error in CommunitySection component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- web/src/components/landing/CommunitySection.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/src/components/landing/CommunitySection.tsx b/web/src/components/landing/CommunitySection.tsx index 9edbf4d4..d8165497 100644 --- a/web/src/components/landing/CommunitySection.tsx +++ b/web/src/components/landing/CommunitySection.tsx @@ -1,7 +1,16 @@ import { motion } from 'framer-motion' 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 (
- {author} + {authorName}