diff --git a/src/app/dashboard/(active)/page.tsx b/src/app/dashboard/(active)/page.tsx index db2caba..56bc513 100644 --- a/src/app/dashboard/(active)/page.tsx +++ b/src/app/dashboard/(active)/page.tsx @@ -1,3 +1,4 @@ +import { Globe } from "lucide-react" import Image from "next/image" import Link from "next/link" import azureSvg from "@/assets/svg/azure.svg" @@ -38,6 +39,18 @@ export default async function AdminHome() { + + + + + + + Web + + Manage website related things + + + ) diff --git a/src/app/dashboard/(active)/telegram/groups/group-row.tsx b/src/app/dashboard/(active)/telegram/groups/group-row.tsx index acc2bac..f5b6e9a 100644 --- a/src/app/dashboard/(active)/telegram/groups/group-row.tsx +++ b/src/app/dashboard/(active)/telegram/groups/group-row.tsx @@ -1,5 +1,5 @@ "use client" -import { Copy, Pen } from "lucide-react" +import { Copy } from "lucide-react" import { useRouter } from "next/navigation" import { toast } from "sonner" import { Badge } from "@/components/ui/badge" diff --git a/src/app/dashboard/(active)/telegram/user-details/remove-role.tsx b/src/app/dashboard/(active)/telegram/user-details/remove-role.tsx index 9235dca..fcf7f23 100644 --- a/src/app/dashboard/(active)/telegram/user-details/remove-role.tsx +++ b/src/app/dashboard/(active)/telegram/user-details/remove-role.tsx @@ -19,7 +19,7 @@ import { import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { useSession } from "@/lib/auth" import { delUserRole } from "@/server/actions/users" -import type { ApiOutput, TgUser, TgUserRole } from "@/server/trpc/types" +import type { TgUser, TgUserRole } from "@/server/trpc/types" const ARRAY_USER_ROLES = [ USER_ROLE.ADMIN, diff --git a/src/app/dashboard/(active)/web/faqs/page.tsx b/src/app/dashboard/(active)/web/faqs/page.tsx new file mode 100644 index 0000000..5c3c47f --- /dev/null +++ b/src/app/dashboard/(active)/web/faqs/page.tsx @@ -0,0 +1,105 @@ +"use client" //Serve? + +import { ArrowLeft, LucidePencil, PlusIcon, Trash } from "lucide-react" +import Link from "next/link" +import { toast } from "sonner" +import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion" +import { Button } from "@/components/ui/button" + +interface FaqsData { + question: string + answer: string +} + +const data: FaqsData[] = [ + { question: "What is the price of a house?", answer: "1 million dollars" }, + { question: "What is the price of a car?", answer: "100 thousand dollars" }, + { question: "What is the price of a bike?", answer: "10 thousand dollars" }, + { question: "What is the price of a boat?", answer: "100 million dollars" }, + { question: "What is the price of a plane?", answer: "1 billion dollars" }, +] + +export default function WebFaqsIndex() { + const handleAdd = (e: React.MouseEvent) => { + e.stopPropagation() + toast.info("Adding FAQ") + } + + const handleEdit = (e: React.MouseEvent, question: string) => { + e.stopPropagation() + toast.warning(`Editing FAQ: "${question}"`) + } + + const handleDelete = (e: React.MouseEvent, question: string) => { + e.stopPropagation() + toast.error(`Deleting FAQ: "${question}"`) + } + + return ( +
+
+
+ + Back + +
+
+

+ Frequently Asked Questions +

+

+ Manage and view FAQs displayed on the web platform. +

+
+ +
+
+ + + {data.map((item, index) => ( + + + + +
+ } + > + {item.question} + + +

{item.answer}

+
+ + ))} + +
+ + ) +} diff --git a/src/app/dashboard/(active)/web/page.tsx b/src/app/dashboard/(active)/web/page.tsx new file mode 100644 index 0000000..5364c39 --- /dev/null +++ b/src/app/dashboard/(active)/web/page.tsx @@ -0,0 +1,27 @@ +import { CircleQuestionMark, Globe } from "lucide-react" +import Link from "next/link" +import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" + +export default function WebIndex() { + return ( +
+

+ + Web +

+
+ + + + + + FAQs + + Manage FAQs + + + +
+
+ ) +} diff --git a/src/components/admin-header/index.tsx b/src/components/admin-header/index.tsx index 135217e..0a52112 100644 --- a/src/components/admin-header/index.tsx +++ b/src/components/admin-header/index.tsx @@ -18,6 +18,9 @@ export function AdminHeader() { Telegram + + Web +