Skip to content

Commit ea6ee89

Browse files
committed
Add Epic Games as new auth provider
Introduces Epic Games ('epic') as a supported authentication provider across dashboard, portal, playground, and analytics chart components. Adds the EpicIcon SVG, updates type definitions, test coverage, and icon mapping to support the new provider.
1 parent 8ef418c commit ea6ee89

File tree

18 files changed

+51
-1
lines changed

18 files changed

+51
-1
lines changed

apps/dashboard/src/@/api/team/ecosystems.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export type AuthOption =
2121
| "steam"
2222
| "apple"
2323
| "coinbase"
24-
| "line";
24+
| "line"
25+
| "epic";
2526

2627
export type Ecosystem = {
2728
name: string;
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 EpicIcon = (props: SVGProps<SVGSVGElement>) => {
4+
return (
5+
<svg
6+
fill="currentColor"
7+
height={24}
8+
role="img"
9+
viewBox="0 0 24 24"
10+
width={24}
11+
xmlns="http://www.w3.org/2000/svg"
12+
{...props}
13+
>
14+
<title>Epic Games</title>
15+
<path d="M331.4 276c-29.3 0-40.1 10.8-40.1 40.1v353.4c0 3.3.1 6.4.4 9.2.7 6.4.8 12.7 6.8 19.7.6.8 6.6 5.2 6.6 5.2 3.2 1.6 5.5 2.7 9.2 4.3l177.8 74.5c9.2 4.2 13.1 5.9 19.8 5.7h.1c6.8.2 10.6-1.5 19.8-5.7l177.8-74.5c3.7-1.5 5.9-2.6 9.2-4.3 0 0 6.1-4.5 6.6-5.2 6-7 6-13.2 6.8-19.7.3-2.8.4-5.9.4-9.2V316c0-29.3-10.8-40-40.1-40H331.4zm285 66.3h14.5c24.2 0 36 11.8 36 36.2v40.1h-29.3v-38.5c0-7.8-3.6-11.5-11.2-11.5h-5c-7.8 0-11.5 3.6-11.5 11.5v124c0 7.8 3.6 11.4 11.5 11.4h5.5c7.5 0 11.1-3.6 11.1-11.4v-44.4h29.4v45.7c0 24.4-12 36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491v-58.9l-.1-.2zm74 0h46.9v13.4h-31.4v9.5h28.2v12.7h-28.2V634h31.8v13.5H565v-58.9l-.1-.4zm-113.5 18.2-.3.8-.3.6-.3.8-.3.8-.2.7-.3.7-.3.8-.3.8-.2.6-.3.8-.3.6-.3.8-.3.8-.3.6-.2.8-.3.6-.3.8-.6 1.2-.2.6-.3.8-.3.8-.2.6-.3.8h13.7l-.3-.8-.3-.7-.3-.8-.3-.7-.2-.7-.3-.7-.3-.8-.3-.7-.3-.7-.3-.7-.2-.7-.3-.8-.3-.7-.3-.7-.3-.7-.2-.7-.3-.8-.3-.8-.3-.6-.3-.8-.3-.8-.2-.7-.8-1.1zm-24.5 111.4h171l-87.3 28.8-83.7-28.8z" />
16+
</svg>
17+
);
18+
};

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/[slug]/(active)/configuration/components/client/auth-options-form.client.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const authOptions = [
5858
"apple",
5959
"coinbase",
6060
"line",
61+
"epic",
6162
] as const satisfies AuthOption[];
6263

6364
type AuthOptionsFormData = {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/wallets/analytics/chart/InAppWalletUsersChartCard.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const authMethodsToPickFrom: InAppWalletAuth[] = [
8787
"line",
8888
"x",
8989
"tiktok",
90+
"epic",
9091
"coinbase",
9192
"farcaster",
9293
"telegram",

apps/playground-web/src/app/wallets/sign-in/components/InAppWalletFormGroup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const allInAppWalletLoginMethods: InAppWalletAuth[] = [
2020
"line",
2121
"x",
2222
"tiktok",
23+
"epic",
2324
"facebook",
2425
"apple",
2526
"coinbase",

apps/portal/src/components/Document/AuthList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const authOptions: InAppWalletAuth[] = [
1515
"facebook",
1616
"x",
1717
"tiktok",
18+
"epic",
1819
"discord",
1920
"telegram",
2021
"twitch",

packages/thirdweb/src/react/core/utils/walletIcon.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ describe("walletIcon", () => {
5555
expect(getSocialIcon("tiktok")).toBe(socialIcons.tiktok);
5656
});
5757

58+
it("should return epic icon", () => {
59+
expect(getSocialIcon("epic")).toBe(socialIcons.epic);
60+
});
61+
5862
it("should return farcaster icon", () => {
5963
expect(getSocialIcon("farcaster")).toBe(socialIcons.farcaster);
6064
});

packages/thirdweb/src/react/core/utils/walletIcon.ts

Lines changed: 5 additions & 0 deletions
Large diffs are not rendered by default.

packages/thirdweb/src/react/native/ui/components/WalletImage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
APPLE_ICON,
1212
DISCORD_ICON,
1313
EMAIL_ICON,
14+
EPIC_ICON,
1415
FACEBOOK_ICON,
1516
FARCASTER_ICON,
1617
GITHUB_ICON,
@@ -106,6 +107,8 @@ export function getAuthProviderImage(authProvider: string | null): string {
106107
return X_ICON;
107108
case "tiktok":
108109
return TIKTOK_ICON;
110+
case "epic":
111+
return EPIC_ICON;
109112
case "farcaster":
110113
return FARCASTER_ICON;
111114
case "telegram":

packages/thirdweb/src/react/native/ui/connect/InAppWalletUI.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {
3232
APPLE_ICON,
3333
COINBASE_ICON,
3434
DISCORD_ICON,
35+
EPIC_ICON,
3536
FACEBOOK_ICON,
3637
FARCASTER_ICON,
3738
GITHUB_ICON,
@@ -69,6 +70,7 @@ const socialIcons = {
6970
twitch: TWITCH_ICON,
7071
x: X_ICON,
7172
tiktok: TIKTOK_ICON,
73+
epic: EPIC_ICON,
7274
};
7375

7476
type InAppWalletFormUIProps = {

0 commit comments

Comments
 (0)