This commit is contained in:
Rao 2025-02-25 20:40:17 +08:00
commit b690ae1c20
2 changed files with 2 additions and 5 deletions

View File

@ -41,7 +41,7 @@ const CategorySection = () => {
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
{isLoading ? (
<Skeleton></Skeleton>
<Skeleton paragraph={{rows:4}}></Skeleton>
) : (
courseCategoriesData.map((category, index) => {
const categoryColor = stringToColor(category.name);

View File

@ -1,7 +1,5 @@
import React, { useState, useMemo } from "react";
import { useNavigate } from "react-router-dom";
import { Button, Typography, Skeleton } from "antd";
import { ArrowRightOutlined } from "@ant-design/icons";
import { Typography, Skeleton } from "antd";
import { TaxonomySlug, TermDto } from "@nice/common";
import { api } from "@nice/client";
import { CoursesSectionTag } from "./CoursesSectionTag";
@ -40,7 +38,6 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
description,
initialVisibleCoursesCount = 8,
}) => {
const navigate = useNavigate();
const [selectedCategory, setSelectedCategory] = useState<string>("全部");
const gateGory: GetTaxonomyProps = useGetTaxonomy({
type: TaxonomySlug.CATEGORY,