Skip to content

Commit c31f919

Browse files
committed
[Dashboard] Replace Linkedin icon (#4818)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new `LinkedInIcon` component and replaces instances of the `SiLinkedin` icon with the new `LinkedInIcon` in two files, enhancing the consistency of icon usage across the application. ### Detailed summary - Created a new `LinkedInIcon` component in `LinkedinIcon.tsx`. - Replaced `SiLinkedin` with `LinkedInIcon` in `socialLinks.tsx`. - Replaced `SiLinkedin` with `LinkedInIcon` in `PublisherSocials.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent ffcd199 commit c31f919

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

apps/dashboard/src/components/contract-components/publisher/PublisherSocials.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { ButtonGroup, type ButtonGroupProps, Icon } from "@chakra-ui/react";
22
import { SiFacebook } from "@react-icons/all-files/si/SiFacebook";
3-
import { SiLinkedin } from "@react-icons/all-files/si/SiLinkedin";
43
import { SiMedium } from "@react-icons/all-files/si/SiMedium";
54
import { SiReddit } from "@react-icons/all-files/si/SiReddit";
65
import { SiTelegram } from "@react-icons/all-files/si/SiTelegram";
76
import { DiscordIcon } from "components/icons/brand-icons/DiscordIcon";
87
import { GithubIcon } from "components/icons/brand-icons/GithubIcon";
8+
import { LinkedInIcon } from "components/icons/brand-icons/LinkedinIcon";
99
import { XIcon } from "components/icons/brand-icons/XIcon";
1010
import type { ProfileMetadata } from "constants/schemas";
1111
import { FiGlobe } from "react-icons/fi";
@@ -162,7 +162,7 @@ export const PublisherSocials: React.FC<PublisherSocialsProps> = ({
162162
}
163163
bg="transparent"
164164
aria-label="linkedin"
165-
icon={<Icon as={SiLinkedin} />}
165+
icon={<LinkedInIcon className="size-4" />}
166166
category={TRACKING_CATEGORY}
167167
label="linkedin"
168168
/>

apps/dashboard/src/components/footer/socialLinks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { SiInstagram } from "@react-icons/all-files/si/SiInstagram";
2-
import { SiLinkedin } from "@react-icons/all-files/si/SiLinkedin";
32
import { SiTiktok } from "@react-icons/all-files/si/SiTiktok";
43
import { SiYoutube } from "@react-icons/all-files/si/SiYoutube";
54
import { DiscordIcon } from "components/icons/brand-icons/DiscordIcon";
65
import { GithubIcon } from "components/icons/brand-icons/GithubIcon";
6+
import { LinkedInIcon } from "components/icons/brand-icons/LinkedinIcon";
77
import { XIcon } from "components/icons/brand-icons/XIcon";
88

99
interface socialLinkInfo {
@@ -37,7 +37,7 @@ export const SOCIALS: socialLinkInfo[] = [
3737
link: "https://www.linkedin.com/company/third-web/",
3838
ariaLabel: "LinkedIn",
3939
label: "linkedin",
40-
icon: <SiLinkedin fontSize={socialIconSize} />,
40+
icon: <LinkedInIcon fontSize={socialIconSize} className="size-5" />,
4141
},
4242
{
4343
link: "https://www.instagram.com/thirdweb/",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { SVGProps } from "react";
2+
3+
export const LinkedInIcon = (props: SVGProps<SVGSVGElement>) => {
4+
return (
5+
<svg
6+
role="img"
7+
viewBox="0 0 24 24"
8+
xmlns="http://www.w3.org/2000/svg"
9+
fill="currentColor"
10+
width={24}
11+
height={24}
12+
{...props}
13+
>
14+
<title>LinkedIn</title>
15+
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
16+
</svg>
17+
);
18+
};

0 commit comments

Comments
 (0)