Skip to content

Commit

Permalink
FIx icon sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Feb 26, 2024
1 parent be04f53 commit d20dce6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/charterafrica/src/components/Entity/Entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const SocialMediaLink = React.forwardRef(function SocialMediaLink(props, ref) {
instagram: InstagramIcon,
youtube: YouTubeIcon,
};
const largeIconSizes = ["discord", "telegram", "whatsapp"];
return href && icons[variant] ? (
<Link
ref={ref}
Expand All @@ -67,7 +68,7 @@ const SocialMediaLink = React.forwardRef(function SocialMediaLink(props, ref) {
<SvgIcon
inheritViewBox
component={icons[variant]}
viewBox="0 0 24 24"
viewBox={largeIconSizes.includes(variant) ? "0 0 25 25" : "0 0 24 24"}
sx={{
color: "text.primary",
display: "inline-flex",
Expand Down

0 comments on commit d20dce6

Please sign in to comment.