rht
This commit is contained in:
parent
83c66f29ff
commit
5bc3303e94
|
@ -58,7 +58,7 @@ const CategorySection = () => {
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<Skeleton paragraph={{ rows: 4 }}></Skeleton>
|
<Skeleton paragraph={{ rows: 4 }}></Skeleton>
|
||||||
) : (
|
) : (
|
||||||
courseCategoriesData?.map((category, index) => {
|
courseCategoriesData?.filter(c=>!c.deletedAt)?.map((category, index) => {
|
||||||
const categoryColor = stringToColor(category.name);
|
const categoryColor = stringToColor(category.name);
|
||||||
const isHovered = hoveredIndex === index;
|
const isHovered = hoveredIndex === index;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { api } from "@nice/client/";
|
import { api } from "@nice/client/";
|
||||||
import { Checkbox, Skeleton } from "antd";
|
import { Checkbox, Skeleton } from "antd";
|
||||||
import { TermDto } from "@nice/common";
|
import { TermDto } from "@nice/common";
|
||||||
import React from "react";
|
|
||||||
export default function TermParentSelector({
|
export default function TermParentSelector({
|
||||||
value,
|
value,
|
||||||
onChange,
|
onChange,
|
||||||
|
@ -40,7 +39,7 @@ export default function TermParentSelector({
|
||||||
}}></Skeleton>
|
}}></Skeleton>
|
||||||
) : (
|
) : (
|
||||||
<Checkbox.Group value={value} onChange={handleCheckboxChange}>
|
<Checkbox.Group value={value} onChange={handleCheckboxChange}>
|
||||||
{data?.map((category) => (
|
{data?.filter(category=>!category.deletedAt)?.map((category) => (
|
||||||
<div className="w-full h-9 p-2 my-1" key={category.id}>
|
<div className="w-full h-9 p-2 my-1" key={category.id}>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
className="text-base text-slate-700"
|
className="text-base text-slate-700"
|
||||||
|
|
Loading…
Reference in New Issue