Compare commits
No commits in common. "82ebc3c6114e99b2e6249f2b7fe21cfe9dfe42ae" and "7606d2cb3425905171498914d73bff7dd01035a4" have entirely different histories.
82ebc3c611
...
7606d2cb34
|
|
@ -1,6 +1,6 @@
|
||||||
'use client' // Error components must be Client Components
|
'use client' // Error components must be Client Components
|
||||||
|
|
||||||
// import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
|
|
||||||
export default function Error({
|
export default function Error({
|
||||||
error,
|
error,
|
||||||
|
|
@ -9,20 +9,21 @@ export default function Error({
|
||||||
error: Error & { digest?: string }
|
error: Error & { digest?: string }
|
||||||
reset: () => void
|
reset: () => void
|
||||||
}) {
|
}) {
|
||||||
// useEffect(() => {
|
useEffect(() => {
|
||||||
// // Log the error to an error reporting service
|
// Log the error to an error reporting service
|
||||||
// console.error(error)
|
console.error(error)
|
||||||
// }, [error])
|
}, [error])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto text-gray-700 flex flex-col justify-center items-center gap-y-10 mt-6">
|
<div>
|
||||||
<h2>مشکلی پیش آمده ...!</h2>
|
<h2>Something went wrong!</h2>
|
||||||
<button
|
<button
|
||||||
className="text-white bg-blue hover:bg-blue50 p-2 w-fit rounded-md transition"
|
onClick={
|
||||||
onClick={() => reset()
|
// Attempt to recover by trying to re-render the segment
|
||||||
|
() => reset()
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
تلاش دوباره
|
Try again
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use client' // Error components must be Client Components
|
'use client' // Error components must be Client Components
|
||||||
|
|
||||||
// import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
|
|
||||||
export default function Error({
|
export default function Error({
|
||||||
error,
|
error,
|
||||||
|
|
@ -9,20 +9,21 @@ export default function Error({
|
||||||
error: Error & { digest?: string }
|
error: Error & { digest?: string }
|
||||||
reset: () => void
|
reset: () => void
|
||||||
}) {
|
}) {
|
||||||
// useEffect(() => {
|
useEffect(() => {
|
||||||
// // Log the error to an error reporting service
|
// Log the error to an error reporting service
|
||||||
// console.error(error)
|
console.error(error)
|
||||||
// }, [error])
|
}, [error])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto text-gray-700 flex flex-col justify-center items-center gap-y-10 mt-6">
|
<div>
|
||||||
<h2>مشکلی پیش آمده ...!</h2>
|
<h2>Something went wrong!</h2>
|
||||||
<button
|
<button
|
||||||
className="text-white bg-blue hover:bg-blue50 p-2 w-fit rounded-md transition"
|
onClick={
|
||||||
onClick={() => reset()
|
// Attempt to recover by trying to re-render the segment
|
||||||
|
() => reset()
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
تلاش دوباره
|
Try again
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
'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
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (aboutBtn === "Add") {
|
if (callBtn === "Add") {
|
||||||
onSubmitAddAboutUs();
|
onSubmitAddAboutUs();
|
||||||
} else if (aboutBtn === "Edit") {
|
} else if (callBtn === "Edit") {
|
||||||
onEditAboutUs();
|
onEditAboutUs();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
@ -306,9 +306,9 @@ export default function AdminWebContents() {
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (afterBtn === "Add") {
|
if (callBtn === "Add") {
|
||||||
onSubmitAddَAfterText();
|
onSubmitAddَAfterText();
|
||||||
} else if (afterBtn === "Edit") {
|
} else if (callBtn === "Edit") {
|
||||||
onEditAfterText();
|
onEditAfterText();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
@ -334,9 +334,9 @@ export default function AdminWebContents() {
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (beforeBtn === "Add") {
|
if (callBtn === "Add") {
|
||||||
onSubmitAddBeforeText();
|
onSubmitAddBeforeText();
|
||||||
} else if (beforeBtn === "Edit") {
|
} else if (callBtn === "Edit") {
|
||||||
onEditBeforeText();
|
onEditBeforeText();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -392,8 +392,7 @@ export default function ComplainsDetails({
|
||||||
</div>
|
</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>
|
<p className="text-[#464646] text-base font-bold">روند شکایت</p>
|
||||||
<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
|
<div className="flex flex-col mt-4 gap-y-4">
|
||||||
scrollbar-thin scrollbar-thumb-rounded-md scrollbar-thumb-gray-500 scrollbar-track-gray-100">
|
|
||||||
{data.contents?.map((item: any) => {
|
{data.contents?.map((item: any) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue