File tree Expand file tree Collapse file tree 4 files changed +24
-6
lines changed
apps/dashboard/src/components
contract-components/publisher Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import { SiLinkedin } from "@react-icons/all-files/si/SiLinkedin";
44import { SiMedium } from "@react-icons/all-files/si/SiMedium" ;
55import { SiReddit } from "@react-icons/all-files/si/SiReddit" ;
66import { SiTelegram } from "@react-icons/all-files/si/SiTelegram" ;
7- import { SiTwitter } from "@react-icons/all-files/si/SiTwitter" ;
87import { DiscordIcon } from "components/icons/brand-icons/DiscordIcon" ;
98import { GithubIcon } from "components/icons/brand-icons/GithubIcon" ;
9+ import { XIcon } from "components/icons/brand-icons/XIcon" ;
1010import type { ProfileMetadata } from "constants/schemas" ;
1111import { FiGlobe } from "react-icons/fi" ;
1212import { LinkButton , TrackedIconButton } from "tw-components" ;
@@ -37,7 +37,7 @@ export const PublisherSocials: React.FC<PublisherSocialsProps> = ({
3737 }
3838 bg = "transparent"
3939 aria-label = "twitter"
40- icon = { < Icon as = { SiTwitter } /> }
40+ icon = { < XIcon className = "size-4" /> }
4141 category = { TRACKING_CATEGORY }
4242 label = "twitter"
4343 />
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ import {
99 Textarea ,
1010 useDisclosure ,
1111} from "@chakra-ui/react" ;
12- import { SiTwitter } from "@react-icons/all-files/si/SiTwitter" ;
1312import { useQueryClient } from "@tanstack/react-query" ;
1413import { DiscordIcon } from "components/icons/brand-icons/DiscordIcon" ;
1514import { GithubIcon } from "components/icons/brand-icons/GithubIcon" ;
15+ import { XIcon } from "components/icons/brand-icons/XIcon" ;
1616import { FileInput } from "components/shared/FileInput" ;
1717import {
1818 DASHBOARD_ENGINE_RELAYER_URL ,
@@ -227,7 +227,7 @@ export const EditProfile: React.FC<EditProfileProps> = ({
227227 < FormControl isInvalid = { ! ! errors . twitter } >
228228 < FormLabel >
229229 < div className = "flex flex-row gap-2" >
230- < Icon as = { SiTwitter } boxSize = { 4 } />
230+ < XIcon className = "size-4" />
231231 Twitter
232232 </ div >
233233 </ FormLabel >
Original file line number Diff line number Diff line change 11import { SiInstagram } from "@react-icons/all-files/si/SiInstagram" ;
22import { SiLinkedin } from "@react-icons/all-files/si/SiLinkedin" ;
33import { SiTiktok } from "@react-icons/all-files/si/SiTiktok" ;
4- import { SiTwitter } from "@react-icons/all-files/si/SiTwitter" ;
54import { SiYoutube } from "@react-icons/all-files/si/SiYoutube" ;
65import { DiscordIcon } from "components/icons/brand-icons/DiscordIcon" ;
76import { GithubIcon } from "components/icons/brand-icons/GithubIcon" ;
7+ import { XIcon } from "components/icons/brand-icons/XIcon" ;
88
99interface socialLinkInfo {
1010 link : string ;
@@ -18,7 +18,7 @@ const socialIconSize = "1.25rem";
1818export const SOCIALS : socialLinkInfo [ ] = [
1919 {
2020 link : "https://twitter.com/thirdweb" ,
21- icon : < SiTwitter fontSize = { socialIconSize } /> ,
21+ icon : < XIcon fontSize = { socialIconSize } className = "size-5" /> ,
2222 ariaLabel : "Twitter" ,
2323 } ,
2424 {
Original file line number Diff line number Diff line change 1+ import type { SVGProps } from "react" ;
2+
3+ export const XIcon = ( 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 > X</ title >
15+ < path d = "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" />
16+ </ svg >
17+ ) ;
18+ } ;
You can’t perform that action at this time.
0 commit comments