Skip to content

Commit f13db31

Browse files
committed
x logo fix
1 parent 9b16da6 commit f13db31

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

demo/vue-app-new/package-lock.json

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/modal/src/ui/components/Button/ButtonSocial/ButtonSocial.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Image from "../../Image";
55
import { ButtonSocialProps } from "./ButtonSocial.type";
66

77
function getProviderIcon(method: string, isDark: boolean, isPrimaryBtn: boolean) {
8-
const imageId = method === AUTH_CONNECTION.TWITTER ? `login-X-${isDark ? "-light" : "-dark"}` : `login-${method}${isDark ? "-light" : "-dark"}`;
8+
const imageId = method === AUTH_CONNECTION.TWITTER ? `login-X${isDark ? "-dark" : "-light"}` : `login-${method}${isDark ? "-light" : "-dark"}`;
99
const hoverId =
1010
method === AUTH_CONNECTION.APPLE || method === AUTH_CONNECTION.GITHUB || method === AUTH_CONNECTION.TWITTER ? imageId : `login-${method}-active`;
1111
if (isPrimaryBtn) {

packages/modal/src/ui/components/SocialLoginList/SocialLoginList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import LoginHint from "../LoginHint";
66
import { SocialLoginListProps } from "./SocialLoginList.type";
77

88
function getProviderIcon(method: string, isDark: boolean, extension: string) {
9-
const imageId =
10-
method === AUTH_CONNECTION.TWITTER ? `login-twitter-x${isDark ? "-light" : "-dark"}` : `login-${method}${isDark ? "-light" : "-dark"}`;
9+
const imageId = method === AUTH_CONNECTION.TWITTER ? `login-X${isDark ? "-dark" : "-light"}` : `login-${method}${isDark ? "-light" : "-dark"}`;
1110
const hoverId =
1211
method === AUTH_CONNECTION.APPLE || method === AUTH_CONNECTION.GITHUB || method === AUTH_CONNECTION.TWITTER ? imageId : `login-${method}-active`;
1312
return (

0 commit comments

Comments
 (0)