Grégoire Delattre bcadc48d5a Launch prettier with the --fix option
They've changed their default settings, this changes a lot of stuff in
our code base.
2020-04-01 17:55:34 +02:00

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,
};