From 3f3fa9a72091569f5a8a023230e55d4dd234187a Mon Sep 17 00:00:00 2001 From: gosangam Date: Fri, 9 Oct 2026 06:22:31 +0530 Subject: [PATCH] feat: rtf --- app/(dashboard)/feedback/page.tsx | 9 +- app/(dashboard)/reports/page.tsx | 11 +- app/(dashboard)/users/page.tsx | 7 +- components/ui/rich-textarea.tsx | 216 ++++++++++++++++++++++++++++++ lib/rich-text.tsx | 111 +++++++++++++++ 5 files changed, 342 insertions(+), 12 deletions(-) create mode 100644 components/ui/rich-textarea.tsx create mode 100644 lib/rich-text.tsx diff --git a/app/(dashboard)/feedback/page.tsx b/app/(dashboard)/feedback/page.tsx index 1197ad9..5e76a40 100644 --- a/app/(dashboard)/feedback/page.tsx +++ b/app/(dashboard)/feedback/page.tsx @@ -9,7 +9,8 @@ import { Table, THead, TR, TH, TD } from "@/components/ui/table"; import { Button } from "@/components/ui/button"; import { Modal } from "@/components/ui/modal"; import { useConfirm } from "@/components/confirm"; -import { Textarea } from "@/components/ui/input"; +import { RichTextarea } from "@/components/ui/rich-textarea"; +import { RichText } from "@/lib/rich-text"; import { cn, fmtDate } from "@/lib/utils"; const STATUSES = ["all", "open", "resolved"] as const; @@ -121,7 +122,7 @@ export default function FeedbackPage() { {f.reply_message ? (
Your reply: - {f.reply_message} +
) : null} @@ -235,9 +236,9 @@ function ReplyModal({ ) : null}