Skip to content

Commit ac9deb1

Browse files
author
bhavabhuthi
committed
feat: replace error fallback page
1 parent 5b59414 commit ac9deb1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/[locale]/(user)/categories/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Link from 'next/link';
77
import { Text } from 'opub-ui';
88

99
import BreadCrumbs from '@/components/BreadCrumbs';
10+
import { ErrorPage } from '@/components/error';
1011
import { Loading } from '@/components/loading';
1112
import { GraphQL } from '@/lib/api';
1213

@@ -74,9 +75,7 @@ const CategoriesListingPage = () => {
7475
</div>
7576
</>
7677
) : getCategoriesList.isError ? (
77-
<div className="text font-Medium flex h-[680px] w-full flex-col items-center justify-center gap-4 text-600">
78-
Error fetching data. Please try again later.
79-
</div>
78+
<ErrorPage />
8079
) : (
8180
<></>
8281
)}

0 commit comments

Comments
 (0)