Merge branch 'main' of http://113.45.157.195:3003/insiinc/re-mooc
This commit is contained in:
commit
2db4063368
|
@ -145,11 +145,15 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
|
||||||
<Tag
|
<Tag
|
||||||
key={category}
|
key={category}
|
||||||
color={selectedCategory === category ? 'blue' : 'default'}
|
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
|
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-blue-600 text-white shadow-lg'
|
||||||
: 'bg-white text-gray-600 hover:bg-gray-100'
|
: 'bg-white text-gray-600 hover:bg-gray-100'
|
||||||
}`}
|
}`}
|
||||||
|
|
||||||
>
|
>
|
||||||
{category}
|
{category}
|
||||||
</Tag>
|
</Tag>
|
||||||
|
|
Loading…
Reference in New Issue