From 8c1153ee7e6a28e9e6bbaa27bf718dbf8b359fc2 Mon Sep 17 00:00:00 2001 From: Zafeeruddin Date: Mon, 16 Sep 2024 09:15:20 +0300 Subject: [PATCH] Fixed linting errors --- src/app/admin/add-course/page.tsx | 124 +++++++++++------- src/app/admin/comment/ApproveComment.tsx | 37 +++--- src/app/admin/comment/page.tsx | 8 +- .../content/[courseId]/[...moduleId]/page.tsx | 2 +- src/app/admin/content/[courseId]/page.tsx | 4 +- src/app/admin/discord/page.tsx | 65 ++++----- src/app/admin/layout.tsx | 12 +- src/app/admin/page.tsx | 50 ++++--- src/app/admin/user/LogoutUser.tsx | 36 ++--- src/app/admin/user/page.tsx | 6 +- src/app/admin/userflags/page.tsx | 60 ++++----- src/components/Navbar.tsx | 2 +- src/components/admin/AddContent.tsx | 120 +++++++++-------- .../admin/ContentRendererClient.tsx | 30 ++++- src/components/admin/UpdateVideoClient.tsx | 61 +++++---- src/components/ui/radio-group.tsx | 16 +-- 16 files changed, 366 insertions(+), 267 deletions(-) diff --git a/src/app/admin/add-course/page.tsx b/src/app/admin/add-course/page.tsx index dace4c5a8..d4b6d5609 100644 --- a/src/app/admin/add-course/page.tsx +++ b/src/app/admin/add-course/page.tsx @@ -1,12 +1,7 @@ 'use client'; import { Button } from '@/components/ui/button'; -import { - Card, - CardContent, - CardHeader, - CardTitle, -} from '@/components/ui/card'; +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Form, FormControl, @@ -29,7 +24,7 @@ import { AccordionContent, AccordionItem, AccordionTrigger, -} from "@/components/ui/accordion"; +} from '@/components/ui/accordion'; import { Cuboid, PackagePlus } from 'lucide-react'; import { FaDiscord } from 'react-icons/fa'; @@ -86,24 +81,32 @@ export default function Courses() { return (
- -
+
-

View Content

+

View Content

- + - -
- New course + +
+ + New course
-
-
Create new course for 100xdevs community and let user explore new courses
-
- +
+
+ Create new course for 100xdevs community and let user explore + new courses +
+
+ {/* Create a new course */} Fill in the course details below @@ -121,7 +124,11 @@ export default function Courses() { Title - + @@ -134,7 +141,11 @@ export default function Courses() { Image url - + @@ -144,11 +155,12 @@ export default function Courses() { control={form.control} name="description" render={({ field }: { field: any }) => ( - + Description