diff --git a/src/components/CatalogueContent.tsx b/src/components/CatalogueContent.tsx
index c7acfe6..520647d 100644
--- a/src/components/CatalogueContent.tsx
+++ b/src/components/CatalogueContent.tsx
@@ -26,6 +26,7 @@ import JSZip from "jszip";
import { toast } from "react-hot-toast";
import { useCourses } from "@/context/courseContext";
import EmptyState from "./ui/EmptyState";
+import SidebarButton from "./SidebarButton";
const CatalogueContent = () => {
const router = useRouter();
@@ -417,6 +418,22 @@ const CatalogueContent = () => {
+
+
+ {/* Select/Deselect/Download All Buttons */}
+
+
+
+ Select All
+
+
+ Deselect All
+
+
+ Download Selected
+
+
+
{relatedSubjects.length > 0 && (
diff --git a/src/components/SideBar.tsx b/src/components/SideBar.tsx
index 0612682..6a1926d 100644
--- a/src/components/SideBar.tsx
+++ b/src/components/SideBar.tsx
@@ -16,9 +16,9 @@ function SideBar({
filterOptions,
filtersNotPulled,
handleApplyFilters,
- handleSelectAll,
- handleDeselectAll,
- handleDownloadSelected: handleDownloadAll,
+ handleSelectAll,
+ handleDeselectAll,
+ handleDownloadSelected
}: {
loading: boolean;
selectedExams: string[];
@@ -41,8 +41,8 @@ function SideBar({
semester: string[],
anskey: boolean
) => void;
- handleSelectAll: () => void;
- handleDeselectAll: () => void;
+ handleSelectAll: () => void;
+ handleDeselectAll: () => void;
handleDownloadSelected: () => void;
}) {
const exams =
@@ -146,11 +146,6 @@ function SideBar({
-
- Select All
- Deselect All
- Download Selected
-
{filtersForSidebar.map((section) => (