From 49f72e93d9b996a770ff9b976490e265d388ca9c Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:07:06 -0700 Subject: [PATCH] lint fixes --- .../src/app/category/page.tsx | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/admin-portal-frontend/src/app/category/page.tsx b/admin-portal-frontend/src/app/category/page.tsx index 9e7bb0b..9f29bd7 100644 --- a/admin-portal-frontend/src/app/category/page.tsx +++ b/admin-portal-frontend/src/app/category/page.tsx @@ -7,7 +7,7 @@ import { Category, deletePage } from "../api/Categories"; import PageContainer from "../components/PageContainer"; import Toast from "../components/Toast"; -export default function CategoriesPage() { +function CategoryInfo() { const searchParams = useSearchParams(); const categoryString = searchParams.get("category"); const [category, setCategory] = useState( @@ -42,30 +42,32 @@ export default function CategoriesPage() { }; return ( - Loading...}> -
-
-

{category ? category.title : "ooga"}

-
+
+
+

{category ? category.title : "ooga"}

+
-
-
-

All Pages

-
- - -
+
+
+

All Pages

+
+ +
- - {showToast && ( - - )}
+ + {showToast && ( + + )}
+
+ ); +} + +export default function CategoriesPage() { + return ( + + ); }