From ad61c5207b5131132da3ce356435b8b4988b56ec Mon Sep 17 00:00:00 2001 From: Rao <1227431568@qq.com> Date: Mon, 24 Feb 2025 22:00:30 +0800 Subject: [PATCH] rht02242200 --- apps/web/src/app/main/home/components/CoursesSection.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/main/home/components/CoursesSection.tsx b/apps/web/src/app/main/home/components/CoursesSection.tsx index fe2653c..904f758 100755 --- a/apps/web/src/app/main/home/components/CoursesSection.tsx +++ b/apps/web/src/app/main/home/components/CoursesSection.tsx @@ -128,11 +128,15 @@ const CoursesSection: React.FC = ({ 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}