We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27e1649 + 8f793a3 commit a7ed763Copy full SHA for a7ed763
src/components/FolderView.tsx
@@ -36,6 +36,23 @@ export const FolderView = ({
36
currentfilter,
37
);
38
39
+ if (filteredCourseContent?.length === 0) {
40
+ const filterMessages = {
41
+ watched: "You haven't completed any content in this section yet.",
42
+ watching: "No content currently in progress.",
43
+ unwatched: "No new content available to watch.",
44
+ all: "No content available in this section.",
45
+ };
46
+
47
+ return (
48
+ <div className="mt-56 flex">
49
+ <div className="m-auto text-center text-gray-500 text-xl">
50
+ {filterMessages[currentfilter] || "No content found."}
51
+ </div>
52
53
+ );
54
+ }
55
56
return (
57
<div>
58
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
0 commit comments