Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Mar 11, 2022
1 parent 508ef8e commit dd69d79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/components/sections/ProductGallery/ProductGalleryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ function GalleryPage({
/>
<div className="product-listing__results-sponsored">
<h3>Sponsored</h3>
{/*
TODO: Refactor this bit of code
Sections should be self contained and should not import other sections.
We should remove/refactor this section from here
*/}
<ProductTiles products={productsSponsored.slice(0, 2)} title="" />
</div>
<ProductGrid
Expand Down
5 changes: 1 addition & 4 deletions src/pages/s.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { graphql } from 'gatsby'
import { GatsbySeo } from 'gatsby-plugin-next-seo'
import React, { useMemo } from 'react'
import ProductGallery from 'src/components/sections/ProductGallery'
import Section from 'src/components/sections/Section'
import SROnly from 'src/components/ui/SROnly'
import { ITEMS_PER_PAGE } from 'src/constants'
import { applySearchState } from 'src/sdk/search/state'
Expand Down Expand Up @@ -61,9 +60,7 @@ function Page(props: Props) {
*/}
<SROnly as="h1" text={title} />

<Section>
<ProductGallery title="Search Results" />
</Section>
<ProductGallery title="Search Results" />
</SearchProvider>
)
}
Expand Down

0 comments on commit dd69d79

Please sign in to comment.