File tree Expand file tree Collapse file tree 6 files changed +28
-10
lines changed
contract-components/publisher Expand file tree Collapse file tree 6 files changed +28
-10
lines changed Original file line number Diff line number Diff line change 11import { Button } from "@/components/ui/button" ;
22import { cn } from "@/lib/utils" ;
33import { ThirdwebMiniLogo } from "app/components/ThirdwebMiniLogo" ;
4+ import { GithubIcon } from "components/icons/brand-icons/GithubIcon" ;
45import Link from "next/link" ;
56import {
67 SiDiscord ,
7- SiGithub ,
88 SiInstagram ,
99 SiLinkedin ,
1010 SiReddit ,
@@ -35,7 +35,7 @@ export function AppFooter(props: AppFooterProps) {
3535 < div className = "flex flex-row gap-3" >
3636 < Button size = "icon" variant = "ghost" asChild className = "size-9" >
3737 < Link href = "https://github.com/thirdweb-dev" target = "_blank" >
38- < SiGithub className = "size-5 text-muted-foreground" />
38+ < GithubIcon className = "size-5 text-muted-foreground" />
3939 </ Link >
4040 </ Button >
4141 < Button size = "icon" variant = "ghost" asChild className = "size-9" >
Original file line number Diff line number Diff line change 11import { ButtonGroup , type ButtonGroupProps , Icon } from "@chakra-ui/react" ;
22import { SiDiscord } from "@react-icons/all-files/si/SiDiscord" ;
33import { SiFacebook } from "@react-icons/all-files/si/SiFacebook" ;
4- import { SiGithub } from "@react-icons/all-files/si/SiGithub" ;
54import { SiLinkedin } from "@react-icons/all-files/si/SiLinkedin" ;
65import { SiMedium } from "@react-icons/all-files/si/SiMedium" ;
76import { SiReddit } from "@react-icons/all-files/si/SiReddit" ;
87import { SiTelegram } from "@react-icons/all-files/si/SiTelegram" ;
98import { SiTwitter } from "@react-icons/all-files/si/SiTwitter" ;
9+ import { GithubIcon } from "components/icons/brand-icons/GithubIcon" ;
1010import type { ProfileMetadata } from "constants/schemas" ;
1111import { FiGlobe } from "react-icons/fi" ;
1212import { LinkButton , TrackedIconButton } from "tw-components" ;
@@ -67,7 +67,7 @@ export const PublisherSocials: React.FC<PublisherSocialsProps> = ({
6767 }
6868 bg = "transparent"
6969 aria-label = "github"
70- icon = { < Icon as = { SiGithub } /> }
70+ icon = { < GithubIcon className = "size-4" /> }
7171 category = { TRACKING_CATEGORY }
7272 label = "github"
7373 />
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ import {
1010 useDisclosure ,
1111} from "@chakra-ui/react" ;
1212import { SiDiscord } from "@react-icons/all-files/si/SiDiscord" ;
13- import { SiGithub } from "@react-icons/all-files/si/SiGithub" ;
1413import { SiTwitter } from "@react-icons/all-files/si/SiTwitter" ;
1514import { useQueryClient } from "@tanstack/react-query" ;
15+ import { Github } from "components/icons/brand-icons/GithubIcon" ;
1616import { FileInput } from "components/shared/FileInput" ;
1717import {
1818 DASHBOARD_ENGINE_RELAYER_URL ,
@@ -214,7 +214,7 @@ export const EditProfile: React.FC<EditProfileProps> = ({
214214 < FormControl isInvalid = { ! ! errors . github } >
215215 < FormLabel >
216216 < div className = "flex flex-row gap-2" >
217- < Icon as = { SiGithub } boxSize = { 4 } />
217+ < Github className = "size-4" />
218218 GitHub
219219 </ div >
220220 </ FormLabel >
Original file line number Diff line number Diff line change 11import { SiDiscord } from "@react-icons/all-files/si/SiDiscord" ;
2- import { SiGithub } from "@react-icons/all-files/si/SiGithub" ;
32import { SiInstagram } from "@react-icons/all-files/si/SiInstagram" ;
43import { SiLinkedin } from "@react-icons/all-files/si/SiLinkedin" ;
54import { SiTiktok } from "@react-icons/all-files/si/SiTiktok" ;
65import { SiTwitter } from "@react-icons/all-files/si/SiTwitter" ;
76import { SiYoutube } from "@react-icons/all-files/si/SiYoutube" ;
7+ import { GithubIcon } from "components/icons/brand-icons/GithubIcon" ;
88
99interface socialLinkInfo {
1010 link : string ;
@@ -55,6 +55,6 @@ export const SOCIALS: socialLinkInfo[] = [
5555 link : "https://github.com/thirdweb-dev" ,
5656 ariaLabel : "GitHub" ,
5757 label : "gitHub" ,
58- icon : < SiGithub fontSize = { socialIconSize } /> ,
58+ icon : < GithubIcon fontSize = { socialIconSize } className = "size-5" /> ,
5959 } ,
6060] ;
Original file line number Diff line number Diff line change 1+ import type { SVGProps } from "react" ;
2+
3+ export const GithubIcon = ( 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 > GitHub</ title >
15+ < path d = "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
16+ </ svg >
17+ ) ;
18+ } ;
Original file line number Diff line number Diff line change 11import { Box , Flex , useBreakpointValue } from "@chakra-ui/react" ;
2- import { SiGithub } from "@react- icons/all-files/si/SiGithub " ;
2+ import { GithubIcon } from "components/ icons/brand-icons/GithubIcon " ;
33import { useTrack } from "hooks/analytics/useTrack" ;
44import NextImage , { type StaticImageData } from "next/image" ;
55import { IoGameControllerOutline } from "react-icons/io5" ;
@@ -96,7 +96,7 @@ export const GameCard: React.FC<GameCardProps> = ({
9696 } }
9797 size = "sm"
9898 variant = "ghost"
99- icon = { < SiGithub /> }
99+ icon = { < GithubIcon className = "size-4" /> }
100100 aria-label = "GitHub"
101101 category = { TRACK_CATEGORY }
102102 label = { game . id }
You can’t perform that action at this time.
0 commit comments