Skip to content

Commit

Permalink
fix(UI): mf-5168 use colorful platform icons (#10640)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleBill committed Aug 28, 2023
1 parent 5367206 commit 9ff4f61
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/shared/src/UI/components/CoinMetadataTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ export interface CoinMetadataTableProps {
}

const brands: Record<TrendingAPI.CommunityType, React.ReactNode> = {
discord: <Icons.DiscordRoundGray size={16} />,
facebook: <Icons.FacebookRoundGray size={16} />,
github: <Icons.GitHubGray size={16} />,
instagram: <Icons.InstagramRoundGray size={16} />,
medium: <Icons.MediumGray size={16} />,
reddit: <Icons.RedditRoundGray size={16} />,
telegram: <Icons.TelegramRoundGray size={16} />,
discord: <Icons.DiscordRound size={16} />,
facebook: <Icons.FacebookColored size={16} />,
github: <Icons.GitHub size={16} />,
instagram: <Icons.Instagram size={16} />,
medium: <Icons.Medium size={16} />,
reddit: <Icons.RedditRound size={16} />,
telegram: <Icons.TelegramRound size={16} />,
twitter: <Icons.TwitterXRound size={16} />,
youtube: <Icons.YouTubeGray size={16} />,
youtube: <Icons.YouTube size={16} />,
other: null,
}

Expand Down Expand Up @@ -200,7 +200,7 @@ export const CoinMetadataTable = memo(function CoinMetadataTable({ trending }: C
</TableRow>
)
})}
{!!trending?.coin.community_urls?.length && (
{trending?.coin.community_urls?.length ? (
<TableRow>
<TableCell className={classes.cell}>
<Typography className={classes.label} variant="body2">
Expand Down Expand Up @@ -231,7 +231,7 @@ export const CoinMetadataTable = memo(function CoinMetadataTable({ trending }: C
</Stack>
</TableCell>
</TableRow>
)}
) : null}
</TableBody>
</Table>
</TableContainer>
Expand Down

0 comments on commit 9ff4f61

Please sign in to comment.