Skip to content

Commit

Permalink
feat: add tag sort button functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
kleberbaum committed Jan 3, 2025
1 parent 16b731d commit 6c58467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/RezepteIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ const RezepteIndex: FC<IRezepteIndexProps> = ({
}, {});
}, [filteredProducts]);

const isMobile = useBreakpointValue({ base: true, md: false });

return (
<VStack spacing={8} align="stretch" {...props}>
{/* Header Section with Link to Blog */}
Expand Down Expand Up @@ -142,14 +144,12 @@ const RezepteIndex: FC<IRezepteIndexProps> = ({
gap={6}
mb={6}
>
{featuredProducts
?.filter((product) => product.tags?.includes('Neu'))
.map((product, index) => (
{featuredProducts.map((product, index) => (
<ProductCard
key={index}
bcolor="#a0c1d9"
product={product}
isMobile={useBreakpointValue({ base: true, md: false })}
isMobile={isMobile}
/>
))}
</Grid>
Expand Down
2 changes: 0 additions & 2 deletions src/hooks/use-products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ export const useJaenProducts = (
...(isRecent || isOneOfMostRecent ? ["Neu"] : [])
];

console.log("index", index);

return {
variants: [
{
Expand Down

0 comments on commit 6c58467

Please sign in to comment.