diff --git a/components/core/Navbar/Navbar.tsx b/components/core/Navbar/Navbar.tsx index 8ef896190..8a7a84f4c 100644 --- a/components/core/Navbar/Navbar.tsx +++ b/components/core/Navbar/Navbar.tsx @@ -14,7 +14,7 @@ const Navbar: FC = ({ className }) => { return (
-
+
diff --git a/pages/search.tsx b/pages/search.tsx index 4e89150b0..9415d07e8 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -2,7 +2,7 @@ import { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import getSiteInfo from '@lib/bigcommerce/api/operations/get-site-info' import useSearch from '@lib/bigcommerce/products/use-search' import { Layout } from '@components/core' -import { Grid } from '@components/ui' +import { Container, Grid } from '@components/ui' import { ProductCard } from '@components/product' import { useRouter } from 'next/router' @@ -25,60 +25,66 @@ export default function Home({ }) return ( -
-
- +
+
+ {data ? ( + <> + {q && ( +
+ {data.found ? ( + <>Showing {data.products.length} results for + ) : ( + <>There are no products that match + )}{' '} + "{q}" +
+ )} + + + ) : ( +
Searching...
+ )} +
+
+
    +
  • + Relevance +
  • +
  • Latest arrivals
  • +
  • Trending
  • +
  • Price: Low to high
  • +
  • Price: High to low
  • +
+
-
- {data ? ( - <> - {q && ( -
- {data.found ? ( - <>Showing {data.products.length} results for - ) : ( - <>There are no products that match - )}{' '} - "{q}" -
- )} - - - ) : ( -
Searching...
- )} -
-
-
    -
  • - Relevance -
  • -
  • Latest arrivals
  • -
  • Trending
  • -
  • Price: Low to high
  • -
  • Price: High to low
  • -
-
-
+ ) }