Compare commits
4 Commits
7606d2cb34
...
82ebc3c611
| Author | SHA1 | Date |
|---|---|---|
|
|
82ebc3c611 | |
|
|
6baeccf126 | |
|
|
7dc91fc6a7 | |
|
|
40b6b6dc48 |
|
|
@ -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 (
|
||||
<div>
|
||||
<h2>Something went wrong!</h2>
|
||||
<div className="mx-auto text-gray-700 flex flex-col justify-center items-center gap-y-10 mt-6">
|
||||
<h2>مشکلی پیش آمده ...!</h2>
|
||||
<button
|
||||
onClick={
|
||||
// Attempt to recover by trying to re-render the segment
|
||||
() => reset()
|
||||
className="text-white bg-blue hover:bg-blue50 p-2 w-fit rounded-md transition"
|
||||
onClick={() => reset()
|
||||
}
|
||||
>
|
||||
Try again
|
||||
تلاش دوباره
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<div>
|
||||
<h2>Something went wrong!</h2>
|
||||
<div className="mx-auto text-gray-700 flex flex-col justify-center items-center gap-y-10 mt-6">
|
||||
<h2>مشکلی پیش آمده ...!</h2>
|
||||
<button
|
||||
onClick={
|
||||
// Attempt to recover by trying to re-render the segment
|
||||
() => reset()
|
||||
className="text-white bg-blue hover:bg-blue50 p-2 w-fit rounded-md transition"
|
||||
onClick={() => reset()
|
||||
}
|
||||
>
|
||||
Try again
|
||||
تلاش دوباره
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<div className="mx-auto text-gray-700 flex flex-col justify-center items-center gap-y-10 mt-6">
|
||||
<h2>مشکلی پیش آمده ...!</h2>
|
||||
<button
|
||||
className="text-white bg-blue hover:bg-blue50 p-2 w-fit rounded-md transition"
|
||||
onClick={() => reset()
|
||||
}
|
||||
>
|
||||
تلاش دوباره
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -278,9 +278,9 @@ export default function AdminWebContents() {
|
|||
<Button
|
||||
type="submit"
|
||||
onClick={() => {
|
||||
if (callBtn === "Add") {
|
||||
if (aboutBtn === "Add") {
|
||||
onSubmitAddAboutUs();
|
||||
} else if (callBtn === "Edit") {
|
||||
} else if (aboutBtn === "Edit") {
|
||||
onEditAboutUs();
|
||||
}
|
||||
}}
|
||||
|
|
@ -306,9 +306,9 @@ export default function AdminWebContents() {
|
|||
<Button
|
||||
type="submit"
|
||||
onClick={() => {
|
||||
if (callBtn === "Add") {
|
||||
if (afterBtn === "Add") {
|
||||
onSubmitAddَAfterText();
|
||||
} else if (callBtn === "Edit") {
|
||||
} else if (afterBtn === "Edit") {
|
||||
onEditAfterText();
|
||||
}
|
||||
}}
|
||||
|
|
@ -334,9 +334,9 @@ export default function AdminWebContents() {
|
|||
<Button
|
||||
type="submit"
|
||||
onClick={() => {
|
||||
if (callBtn === "Add") {
|
||||
if (beforeBtn === "Add") {
|
||||
onSubmitAddBeforeText();
|
||||
} else if (callBtn === "Edit") {
|
||||
} else if (beforeBtn === "Edit") {
|
||||
onEditBeforeText();
|
||||
}
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -390,9 +390,10 @@ export default function ComplainsDetails({
|
|||
</>
|
||||
)}
|
||||
</div>
|
||||
<div className="bg-[#E9E9E9] rounded-md py-4 px-10 flex flex-col">
|
||||
<div className="bg-[#E9E9E9] rounded-md py-4 px-10 flex flex-col ">
|
||||
<p className="text-[#464646] text-base font-bold">روند شکایت</p>
|
||||
<div className="flex flex-col mt-4 gap-y-4">
|
||||
<div className="flex flex-col mt-4 gap-y-4 max-h-[50vh] lg:max-h-[39.5vh] 2xl:max-h-[43.5vh] 3xl:max-h-[41vh] min-[1920px]:max-h-[48.5vh] overflow-auto
|
||||
scrollbar-thin scrollbar-thumb-rounded-md scrollbar-thumb-gray-500 scrollbar-track-gray-100">
|
||||
{data.contents?.map((item: any) => {
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in New Issue