Commit 4a324939 authored by Max Alekseenko's avatar Max Alekseenko

fix github links in MarketplaceAppModal

parent fd0428be
...@@ -50,12 +50,16 @@ const MarketplaceAppModal = ({ ...@@ -50,12 +50,16 @@ const MarketplaceAppModal = ({
icon: 'social/tweet' as IconName, icon: 'social/tweet' as IconName,
url: twitter, url: twitter,
} : null, } : null,
github ? {
icon: 'social/git' as IconName,
url: github,
} : null,
].filter(Boolean); ].filter(Boolean);
if (github) {
if (Array.isArray(github)) {
github.forEach((url) => socialLinks.push({ icon: 'social/git', url }));
} else {
socialLinks.push({ icon: 'social/git', url: github });
}
}
const handleFavoriteClick = useCallback(() => { const handleFavoriteClick = useCallback(() => {
onFavoriteClick(data.id, isFavorite); onFavoriteClick(data.id, isFavorite);
}, [ onFavoriteClick, data.id, isFavorite ]); }, [ onFavoriteClick, data.id, isFavorite ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment