Merge branch 'main' of http://113.45.157.195:3003/insiinc/re-mooc
This commit is contained in:
commit
7a33ae89b5
|
@ -39,7 +39,7 @@ export default function CourseCard({ course }: CourseCardProps) {
|
|||
}>
|
||||
<div className="px-4">
|
||||
<div className="flex gap-2 mb-4">
|
||||
{course.terms.map((term) => {
|
||||
{course?.terms?.map((term) => {
|
||||
return (
|
||||
<Tag
|
||||
key={term.id}
|
||||
|
@ -51,7 +51,7 @@ export default function CourseCard({ course }: CourseCardProps) {
|
|||
: term?.taxonomy?.slug ===
|
||||
TaxonomySlug.LEVEL
|
||||
? "green"
|
||||
: "blue"
|
||||
: "orange"
|
||||
}
|
||||
className="px-3 py-1 rounded-full bg-blue-100 text-blue-600 border-0">
|
||||
{term.name}
|
||||
|
@ -87,7 +87,7 @@ export default function CourseCard({ course }: CourseCardProps) {
|
|||
<TeamOutlined className="text-blue-500 text-lg transform group-hover:scale-110 transition-transform duration-300" />
|
||||
<div className="ml-2 flex items-center flex-grow">
|
||||
<Text className="font-medium text-blue-500 hover:text-blue-600 transition-colors duration-300 truncate max-w-[120px]">
|
||||
{course.depts.map((depts) => depts.name)}
|
||||
{course?.depts?.map((depts) => depts.name)}
|
||||
{/* {course?.depts?.[0]?.name} */}
|
||||
</Text>
|
||||
</div>
|
||||
|
|
|
@ -188,7 +188,7 @@ const CategorySection = () => {
|
|||
}
|
||||
|
||||
</div>
|
||||
{!isLoading && courseCategoriesData.length > 8 && (
|
||||
{!isLoading && (
|
||||
<div className="flex justify-center mt-12">
|
||||
<Button
|
||||
type="default"
|
||||
|
|
|
@ -123,8 +123,8 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
|
|||
{isDataLoading ? (
|
||||
<Spin className="m-3" />
|
||||
) : (
|
||||
displayedCourses?.map((course) => (
|
||||
<CourseCard course={course}></CourseCard>
|
||||
displayedCourses?.map((course,index) => (
|
||||
<CourseCard course={course} key={index}></CourseCard>
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
|
|
|
@ -13,6 +13,7 @@ export default function MindEditor() {
|
|||
toolBar: true, // default true
|
||||
nodeMenu: true, // default true
|
||||
keypress: true, // default true
|
||||
locale: "zh_CN",
|
||||
});
|
||||
// instance.install(NodeMenu);
|
||||
instance.init(MindElixir.new("新主题"));
|
||||
|
|
Loading…
Reference in New Issue