From 5848298c1d63bc175a5e5e9b73af7893fe1b6386 Mon Sep 17 00:00:00 2001 From: Vijay <74645268+vijaysingh2219@users.noreply.github.com> Date: Mon, 12 Aug 2024 13:32:46 +0530 Subject: [PATCH 1/2] fix: pin functionality issue in the comment dropdown menu --- src/app/error.tsx | 3 --- src/components/comment/CommentApproveForm.tsx | 4 ++-- src/components/comment/CommentDeleteForm.tsx | 4 ++-- src/components/comment/CommentPinForm.tsx | 4 ++-- tsconfig.json | 10 +++++----- 5 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/app/error.tsx b/src/app/error.tsx index db6d36727..87bf2262c 100644 --- a/src/app/error.tsx +++ b/src/app/error.tsx @@ -1,16 +1,13 @@ 'use client'; -import { Button } from '@/components/ui/button'; import { InfoIcon } from 'lucide-react'; import Link from 'next/link'; import { useEffect } from 'react'; export default function ErrorPage({ error, - reset, }: { error: Error & { digest?: string }; - reset: () => void; }) { useEffect(() => { // Log the error to an error reporting service diff --git a/src/components/comment/CommentApproveForm.tsx b/src/components/comment/CommentApproveForm.tsx index c344293ef..0109a3b2c 100644 --- a/src/components/comment/CommentApproveForm.tsx +++ b/src/components/comment/CommentApproveForm.tsx @@ -34,8 +34,8 @@ const CommentApproveForm = ({ }); }; return ( -
-