From c7a0009d9af861640ca1382f12b2490a7d620de8 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 23 Jan 2025 09:35:24 +0100 Subject: [PATCH] Update index.tsx --- frontend/src/app/category-view/index.tsx | 40 +++++++++++------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/frontend/src/app/category-view/index.tsx b/frontend/src/app/category-view/index.tsx index 90c232c0..611c28a2 100644 --- a/frontend/src/app/category-view/index.tsx +++ b/frontend/src/app/category-view/index.tsx @@ -3,7 +3,6 @@ import React, { useEffect, useState } from "react"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; -import { Grid } from "@mui/material"; import { fetchCategories } from "@/lib/data"; import { Category } from "@/lib/types"; @@ -33,40 +32,37 @@ const CategoryView = () => { Back to Categories

{selectedCategory.name}

- +
{selectedCategory.scripts .sort((a, b) => a.name.localeCompare(b.name)) .map((script) => ( - - - -

{script.name}

-

{script.date || "N/A"}

-
-
-
+ + +

{script.name}

+

{script.date || "N/A"}

+
+
))} - +
) : (

Categories

- +
{categories.map((category) => ( - - handleCategoryClick(category)} - className="cursor-pointer hover:shadow-lg" - > - - - + handleCategoryClick(category)} + className="cursor-pointer hover:shadow-lg" + > + + ))} - +
)} ); }; -export default CategoryView; +export default CategoryView; \ No newline at end of file