chore(core): update oauth icons (#9796)

This commit is contained in:
CatsJuice
2025-01-22 07:49:58 +00:00
parent 5828eb53b6
commit f7f1a6ee11

View File

@@ -3,7 +3,7 @@ import { ServerService } from '@affine/core/modules/cloud';
import { UrlService } from '@affine/core/modules/url';
import { OAuthProviderType } from '@affine/graphql';
import track from '@affine/track';
import { GithubIcon, GoogleDuotoneIcon } from '@blocksuite/icons/rc';
import { GithubIcon, GoogleIcon, LockIcon } from '@blocksuite/icons/rc';
import { useLiveData, useService } from '@toeverything/infra';
import { type ReactElement, type SVGAttributes, useCallback } from 'react';
@@ -14,7 +14,7 @@ const OAuthProviderMap: Record<
}
> = {
[OAuthProviderType.Google]: {
icon: <GoogleDuotoneIcon />,
icon: <GoogleIcon />,
},
[OAuthProviderType.GitHub]: {
@@ -22,8 +22,7 @@ const OAuthProviderMap: Record<
},
[OAuthProviderType.OIDC]: {
// TODO(@catsjuice): Add OIDC icon
icon: <GoogleDuotoneIcon />,
icon: <LockIcon />,
},
};