Skip to content

Commit

Permalink
Add to wishlist button: no functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ivallogenes committed Aug 14, 2024
1 parent 8a45415 commit d1a3e26
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions blocks/product-details/product-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ export default async function decorate(block) {
});

// Add to Wishlist Button
// ctx.appendButton(() => ({
// icon: 'Heart',
// variant: 'secondary',
// text: 'Add to Wishlist',
// onClick: () => console.debug('Add to Wishlist', ctx.data),
// }));
ctx.appendButton(() => ({
icon: 'Heart',
variant: 'secondary',
text: 'Add to Wishlist',
onClick: () => console.log('Add to Wishlist', ctx.data),

Check warning on line 83 in blocks/product-details/product-details.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
}));
},
},
})(block);
Expand Down

0 comments on commit d1a3e26

Please sign in to comment.