This commit is contained in:
ditiqi 2025-02-25 08:25:55 +08:00
commit 2db4063368
1 changed files with 5 additions and 1 deletions

View File

@ -145,11 +145,15 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
<Tag
key={category}
color={selectedCategory === category ? 'blue' : 'default'}
onClick={() => setSelectedCategory(category)}
onClick={() => {
setSelectedCategory(category)
console.log(category)
}}
className={`px-6 py-2 text-base cursor-pointer rounded-full transition-all duration-300 ${selectedCategory === category
? 'bg-blue-600 text-white shadow-lg'
: 'bg-white text-gray-600 hover:bg-gray-100'
}`}
>
{category}
</Tag>