react-icons/bs#BsStar JavaScript Examples
The following examples show how to use
react-icons/bs#BsStar.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TokensSymbol.js From plenty-interface with GNU General Public License v3.0 | 6 votes |
TokensSymbol = ({ tokenSymbol, editFavoriteTokenList, favoriteTokens, className }) => {
if (favoriteTokens.includes(tokenSymbol)) {
return (
<BsStarFill
onClick={() => editFavoriteTokenList(tokenSymbol)}
className={clsx(className, 'selected')}
/>
);
}
return <BsStar onClick={() => editFavoriteTokenList(tokenSymbol)} className={clsx(className)} />;
}
Example #2
Source File: TokensSymbol.js From plenty-interface with GNU General Public License v3.0 | 6 votes |
TokensSymbolHeader = ({ isOnlyFavTokens, setIsOnlyFavTokens, className }) => {
if (isOnlyFavTokens) {
return (
<BsStarFill
onClick={() => setIsOnlyFavTokens(false)}
className={clsx(className, 'selected')}
/>
);
}
return <BsStar onClick={() => setIsOnlyFavTokens(true)} className={clsx(className)} />;
}