diff --git a/apps/web/src/components/models/course/detail/CourseSyllabus/CourseSyllabus.tsx b/apps/web/src/components/models/course/detail/CourseSyllabus/CourseSyllabus.tsx index 07b704a..84463cf 100755 --- a/apps/web/src/components/models/course/detail/CourseSyllabus/CourseSyllabus.tsx +++ b/apps/web/src/components/models/course/detail/CourseSyllabus/CourseSyllabus.tsx @@ -60,7 +60,7 @@ export const CourseSyllabus: React.FC = ({ right: 0, top: isHeaderVisible ? "56px" : "0", }} - className="fixed top-0 bottom-0 z-10 bg-white shadow-xl"> + className="fixed top-0 bottom-0 z-20 bg-white shadow-xl"> {isOpen && (
diff --git a/apps/web/src/components/models/course/list/PostList.tsx b/apps/web/src/components/models/course/list/PostList.tsx index e9e51f4..665e30b 100755 --- a/apps/web/src/components/models/course/list/PostList.tsx +++ b/apps/web/src/components/models/course/list/PostList.tsx @@ -2,7 +2,7 @@ import { Pagination, Empty, Skeleton } from "antd"; import { courseDetailSelect, CourseDto, Prisma } from "@nice/common"; import { api } from "@nice/client"; import { DefaultArgs } from "@prisma/client/runtime/library"; -import { useEffect, useMemo, useState } from "react"; +import React, { useEffect, useMemo, useState } from "react"; interface PostListProps { params?: { page?: number; @@ -12,8 +12,7 @@ interface PostListProps { }; cols?: number; showPagination?: boolean; - renderItem: (post: any) => React.ReactNode - + renderItem: (post: any) => React.ReactNode; } interface PostPagnationProps { data: { @@ -21,13 +20,12 @@ interface PostPagnationProps { totalPages: number; }; isLoading: boolean; - } export default function PostList({ params, cols = 3, showPagination = true, - renderItem + renderItem, }: PostListProps) { const [currentPage, setCurrentPage] = useState(params?.page || 1); const { data, isLoading }: PostPagnationProps = @@ -72,9 +70,9 @@ export default function PostList({ {isLoading ? ( ) : ( - posts.map((post) =>
- {renderItem(post)} -
) + posts.map((post) => ( +
{renderItem(post)}
+ )) )}
{showPagination && ( @@ -91,7 +89,6 @@ export default function PostList({ ) : (
-
)}