Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ const InstructorCard: React.FC<InstructorCardProps> = ({ instructor }) => {
<span className="font-medium">{instructor.rating?.toFixed(1) || '4.5'}</span>
<Image src={'/assets/icons/blue-star.svg'} alt="Star icon" width={16} height={16} />
</div>
<span className="text-gray-300">|</span>
{/* <span className="text-gray-300">|</span>
<div className="flex items-center">
<span className="font-bold text-gray-800 mr-1.5">{instructor.student || 0}</span>
<span>Students</span>
</div>
</div> */}
</div>

{/* Các nút hành động */}
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/CourseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const CourseCard = ({ course }: CourseCardProps) => {
<div className="flex items-center gap-1">
<Image src="/assets/home/star.svg" alt="Star" width={10} height={10} className="sm:w-3 sm:h-3" />
<span className="text-[10px] sm:text-xs">{course?.rating.toFixed(1)}</span>
<span className="text-[#6B6B6B] ml-1 text-[9px] sm:text-[10px] sm:text-xs">({course?.purchased} reviews)</span>
<span className="text-[#6B6B6B] ml-1 text-[9px] sm:text-[10px] sm:text-xs">({course?.ratingCount} reviews)</span>
</div>
<span className="text-[#6B6B6B] line-through text-[9px] sm:text-[10px] sm:text-xs">
{typeof course?.estimatedPrice === "number"
Expand All @@ -95,7 +95,7 @@ const CourseCard = ({ course }: CourseCardProps) => {
</span>
</div>
<div className="flex justify-between items-center">
<span className="text-[9px] sm:text-[10px] sm:text-xs text-[#0D0D0D]">200 Review rating</span>
<span className="text-[9px] sm:text-[10px] sm:text-xs text-[#0D0D0D]">{course?.purchased} students</span>
<span className="text-[#3858F8] text-[15px] sm:text-[16px] font-semibold">
{course?.isFree ? "Free" : formatPrice(course?.price || 0)}
</span>
Expand Down
1 change: 1 addition & 0 deletions src/types/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export interface Course {
rating: number;
purchased: number;
isPublished: boolean;
ratingCount?: number;
isFree: boolean;
category?: string | { _id: string; title: string } | null;
subCategory?: string | { _id: string; title: string } | null;
Expand Down
Loading