From 40b6b6dc48017ff05c13abdcd44d3c40fea88386 Mon Sep 17 00:00:00 2001 From: yasaman Date: Tue, 23 Jan 2024 11:26:37 +0330 Subject: [PATCH 1/3] Error page Modified --- .../(Admin)/AdminDashboard/error.tsx | 21 +++++++------- .../ControllerDashboard/error.tsx | 21 +++++++------- app/error.tsx | 29 +++++++++++++++++++ 3 files changed, 49 insertions(+), 22 deletions(-) create mode 100644 app/error.tsx diff --git a/app/UserPanel/(Admin)/AdminDashboard/error.tsx b/app/UserPanel/(Admin)/AdminDashboard/error.tsx index 101c38c..c08a21f 100644 --- a/app/UserPanel/(Admin)/AdminDashboard/error.tsx +++ b/app/UserPanel/(Admin)/AdminDashboard/error.tsx @@ -1,6 +1,6 @@ 'use client' // Error components must be Client Components -import { useEffect } from 'react' +// import { useEffect } from 'react' export default function Error({ error, @@ -9,21 +9,20 @@ export default function Error({ error: Error & { digest?: string } reset: () => void }) { - useEffect(() => { - // Log the error to an error reporting service - console.error(error) - }, [error]) + // useEffect(() => { + // // Log the error to an error reporting service + // console.error(error) + // }, [error]) return ( -
-

Something went wrong!

+
+

مشکلی پیش آمده ...!

) diff --git a/app/UserPanel/(Controller)/ControllerDashboard/error.tsx b/app/UserPanel/(Controller)/ControllerDashboard/error.tsx index 101c38c..c08a21f 100644 --- a/app/UserPanel/(Controller)/ControllerDashboard/error.tsx +++ b/app/UserPanel/(Controller)/ControllerDashboard/error.tsx @@ -1,6 +1,6 @@ 'use client' // Error components must be Client Components -import { useEffect } from 'react' +// import { useEffect } from 'react' export default function Error({ error, @@ -9,21 +9,20 @@ export default function Error({ error: Error & { digest?: string } reset: () => void }) { - useEffect(() => { - // Log the error to an error reporting service - console.error(error) - }, [error]) + // useEffect(() => { + // // Log the error to an error reporting service + // console.error(error) + // }, [error]) return ( -
-

Something went wrong!

+
+

مشکلی پیش آمده ...!

) diff --git a/app/error.tsx b/app/error.tsx new file mode 100644 index 0000000..c08a21f --- /dev/null +++ b/app/error.tsx @@ -0,0 +1,29 @@ +'use client' // Error components must be Client Components + +// import { useEffect } from 'react' + +export default function Error({ + error, + reset, +}: { + error: Error & { digest?: string } + reset: () => void +}) { + // useEffect(() => { + // // Log the error to an error reporting service + // console.error(error) + // }, [error]) + + return ( +
+

مشکلی پیش آمده ...!

+ +
+ ) +} \ No newline at end of file From 7dc91fc6a7909c3ce5af0c812dcac5c3883a4689 Mon Sep 17 00:00:00 2001 From: yasaman Date: Tue, 23 Jan 2024 14:36:01 +0330 Subject: [PATCH 2/3] CoplainsDetails Modified --- components/ComplainsDetails.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/ComplainsDetails.tsx b/components/ComplainsDetails.tsx index b4d6934..43f8ec9 100644 --- a/components/ComplainsDetails.tsx +++ b/components/ComplainsDetails.tsx @@ -390,9 +390,10 @@ export default function ComplainsDetails({ )}
-
+

روند شکایت

-
+
{data.contents?.map((item: any) => { return (
Date: Wed, 24 Jan 2024 14:31:39 +0330 Subject: [PATCH 3/3] "AdminWebContent" Page Modified --- components/AdminWebContents.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/AdminWebContents.tsx b/components/AdminWebContents.tsx index d0c5b1b..a547eb7 100644 --- a/components/AdminWebContents.tsx +++ b/components/AdminWebContents.tsx @@ -278,9 +278,9 @@ export default function AdminWebContents() {