|
1 | 1 | 'use client'; |
2 | 2 |
|
3 | | -import { useEffect, useReducer, useState } from 'react'; |
4 | | -import Image from 'next/image'; |
5 | | -import { useRouter } from 'next/navigation'; |
6 | 3 | import GraphqlPagination from '@/app/[locale]/dashboard/components/GraphqlPagination/graphqlPagination'; |
7 | 4 | import { fetchDatasets } from '@/fetch'; |
8 | 5 | import { graphql } from '@/gql'; |
9 | 6 | import { useQuery } from '@tanstack/react-query'; |
| 7 | +import Image from 'next/image'; |
| 8 | +import { useRouter } from 'next/navigation'; |
10 | 9 | import { Pill, SearchInput, Select, Text } from 'opub-ui'; |
| 10 | +import { useEffect, useReducer, useState } from 'react'; |
11 | 11 |
|
12 | | -import { GraphQL } from '@/lib/api'; |
13 | 12 | import BreadCrumbs from '@/components/BreadCrumbs'; |
| 13 | +import { ErrorPage } from '@/components/error'; |
14 | 14 | import { Loading } from '@/components/loading'; |
| 15 | +import { GraphQL } from '@/lib/api'; |
15 | 16 | import Card from '../../datasets/components/Card'; |
16 | 17 | import Filter from '../../datasets/components/FIlter/Filter'; |
17 | 18 |
|
@@ -247,9 +248,7 @@ const CategoryDetailsPage = ({ params }: { params: { categorySlug: any } }) => { |
247 | 248 | /> |
248 | 249 |
|
249 | 250 | {getCategoryDetails.isError ? ( |
250 | | - <div className="text font-Medium flex h-[680px] w-full flex-col items-center justify-center gap-4 text-600"> |
251 | | - Error fetching data. Please try again later. |
252 | | - </div> |
| 251 | + <ErrorPage /> |
253 | 252 | ) : getCategoryDetails.isLoading ? ( |
254 | 253 | <Loading /> |
255 | 254 | ) : ( |
|
0 commit comments