Skip to content

Commit a226372

Browse files
committed
Update
1 parent 7d5099a commit a226372

File tree

6 files changed

+28
-10
lines changed

6 files changed

+28
-10
lines changed

apps/dashboard/src/@/components/blocks/app-footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Button } from "@/components/ui/button";
22
import { cn } from "@/lib/utils";
33
import { ThirdwebMiniLogo } from "app/components/ThirdwebMiniLogo";
4+
import { GithubIcon } from "components/icons/brand-icons/GithubIcon";
45
import Link from "next/link";
56
import {
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">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { ButtonGroup, type ButtonGroupProps, Icon } from "@chakra-ui/react";
22
import { SiDiscord } from "@react-icons/all-files/si/SiDiscord";
33
import { SiFacebook } from "@react-icons/all-files/si/SiFacebook";
4-
import { SiGithub } from "@react-icons/all-files/si/SiGithub";
54
import { SiLinkedin } from "@react-icons/all-files/si/SiLinkedin";
65
import { SiMedium } from "@react-icons/all-files/si/SiMedium";
76
import { SiReddit } from "@react-icons/all-files/si/SiReddit";
87
import { SiTelegram } from "@react-icons/all-files/si/SiTelegram";
98
import { SiTwitter } from "@react-icons/all-files/si/SiTwitter";
9+
import { GithubIcon } from "components/icons/brand-icons/GithubIcon";
1010
import type { ProfileMetadata } from "constants/schemas";
1111
import { FiGlobe } from "react-icons/fi";
1212
import { 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
/>

apps/dashboard/src/components/contract-components/publisher/edit-profile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
useDisclosure,
1111
} from "@chakra-ui/react";
1212
import { SiDiscord } from "@react-icons/all-files/si/SiDiscord";
13-
import { SiGithub } from "@react-icons/all-files/si/SiGithub";
1413
import { SiTwitter } from "@react-icons/all-files/si/SiTwitter";
1514
import { useQueryClient } from "@tanstack/react-query";
15+
import { GithubIcon } from "components/icons/brand-icons/GithubIcon";
1616
import { FileInput } from "components/shared/FileInput";
1717
import {
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+
<GithubIcon className="size-4" />
218218
GitHub
219219
</div>
220220
</FormLabel>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { SiDiscord } from "@react-icons/all-files/si/SiDiscord";
2-
import { SiGithub } from "@react-icons/all-files/si/SiGithub";
32
import { SiInstagram } from "@react-icons/all-files/si/SiInstagram";
43
import { SiLinkedin } from "@react-icons/all-files/si/SiLinkedin";
54
import { SiTiktok } from "@react-icons/all-files/si/SiTiktok";
65
import { SiTwitter } from "@react-icons/all-files/si/SiTwitter";
76
import { SiYoutube } from "@react-icons/all-files/si/SiYoutube";
7+
import { GithubIcon } from "components/icons/brand-icons/GithubIcon";
88

99
interface 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
];
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 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+
};

apps/dashboard/src/components/product-pages/common/GameCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { 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";
33
import { useTrack } from "hooks/analytics/useTrack";
44
import NextImage, { type StaticImageData } from "next/image";
55
import { 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}

0 commit comments

Comments
 (0)