They've changed their default settings, this changes a lot of stuff in our code base.
18 lines
441 B
JavaScript
18 lines
441 B
JavaScript
import React from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
export const WishlistButton = ({ wishlisted, wishlist }) => {
|
|
return (
|
|
<span className="mr-2 clickable wishlist-button">
|
|
<i
|
|
className={`fa ${wishlisted ? "fa-bookmark" : "fa-bookmark-o"}`}
|
|
onClick={wishlist}
|
|
/>
|
|
</span>
|
|
);
|
|
};
|
|
WishlistButton.propTypes = {
|
|
wishlisted: PropTypes.bool.isRequired,
|
|
wishlist: PropTypes.func.isRequired,
|
|
};
|