diff --git a/src/pages/a2z/AtoZ.jsx b/src/pages/a2z/AtoZ.jsx index f2717e6..8b8bdc2 100644 --- a/src/pages/a2z/AtoZ.jsx +++ b/src/pages/a2z/AtoZ.jsx @@ -46,17 +46,8 @@ function AtoZ({ path }) { return (
-
-

+

Sort By Letters

@@ -83,8 +74,8 @@ function AtoZ({ path }) { {item} @@ -104,11 +95,13 @@ function AtoZ({ path }) { cardStyle="max-[1400px]:h-[35vw]" /> )} - +
+ +
diff --git a/src/pages/search/Search.jsx b/src/pages/search/Search.jsx index 13156d2..076714c 100644 --- a/src/pages/search/Search.jsx +++ b/src/pages/search/Search.jsx @@ -1,15 +1,11 @@ import CategoryCard from '@/src/components/categorycard/CategoryCard'; import CategoryCardLoader from '@/src/components/Loader/CategoryCard.loader'; -import SidecardLoader from '@/src/components/Loader/Sidecard.loader'; import PageSlider from '@/src/components/pageslider/PageSlider'; -import Sidecard from '@/src/components/sidecard/Sidecard'; -import { useHomeInfo } from '@/src/context/HomeInfoContext'; import getSearch from '@/src/utils/getSearch.utils'; import { useEffect, useState } from 'react'; import { useSearchParams } from 'react-router-dom'; function Search() { - const { homeInfo, homeInfoLoading } = useHomeInfo(); const [searchParams, setSearchParams] = useSearchParams(); const keyword = searchParams.get("keyword"); const page = parseInt(searchParams.get("page"), 10) || 1; @@ -39,38 +35,58 @@ function Search() { const handlePageChange = (newPage) => { setSearchParams({ keyword, page: newPage }); }; + return ( -
- {loading ? ( - - ) : page > totalPages ?

You came a long way, go back
nothing is here

: searchData && searchData.length > 0 ? ( -
- - -
- ) : error ?

Couldn't get search result please try again

: ( -

{`Search results for: ${keyword}`}

- )} -
- {homeInfoLoading ? ( - +
+
+ {loading ? ( + + ) : page > totalPages ? ( +
+

+ Search Results +

+

+ You came a long way, go back
nothing is here +

+
+ ) : searchData && searchData.length > 0 ? ( +
+

+ Search Results for: {keyword} +

+ +
+ +
+
+ ) : error ? ( +
+

+ Search Results +

+

+ Couldn't get search results, please try again +

+
) : ( - <> - {homeInfo?.most_popular && ( -
-

Most Popular

- -
- )} - +
+

+ Search Results +

+

+ No results found for: {keyword} +

+
)}