Skip to content

Commit

Permalink
let people skip picking a product
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelmsmith committed Sep 25, 2023
1 parent c303348 commit b8cfdcc
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions frontend/src/scenes/products/Products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,20 @@ export function Products(): JSX.Element {
</p>
</div>
{products.length > 0 ? (
<div className="flex w-full max-w-xl justify-center gap-6 flex-wrap">
{products
.filter((product) => !product.contact_support && !product.inclusion_only)
.map((product) => (
<ProductCard product={product} key={product.type} />
))}
</div>
<>
<div className="flex w-full max-w-xl justify-center gap-6 flex-wrap">
{products
.filter((product) => !product.contact_support && !product.inclusion_only)
.map((product) => (
<ProductCard product={product} key={product.type} />
))}
</div>
<div className="mt-20">
<LemonButton status="muted" to={urls.default()} size="small">
None of these
</LemonButton>
</div>
</>
) : (
<Spinner className="text-3xl" />
)}
Expand Down

0 comments on commit b8cfdcc

Please sign in to comment.