mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
chore(core): update oauth icons (#9796)
This commit is contained in:
@@ -3,7 +3,7 @@ import { ServerService } from '@affine/core/modules/cloud';
|
|||||||
import { UrlService } from '@affine/core/modules/url';
|
import { UrlService } from '@affine/core/modules/url';
|
||||||
import { OAuthProviderType } from '@affine/graphql';
|
import { OAuthProviderType } from '@affine/graphql';
|
||||||
import track from '@affine/track';
|
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 { useLiveData, useService } from '@toeverything/infra';
|
||||||
import { type ReactElement, type SVGAttributes, useCallback } from 'react';
|
import { type ReactElement, type SVGAttributes, useCallback } from 'react';
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ const OAuthProviderMap: Record<
|
|||||||
}
|
}
|
||||||
> = {
|
> = {
|
||||||
[OAuthProviderType.Google]: {
|
[OAuthProviderType.Google]: {
|
||||||
icon: <GoogleDuotoneIcon />,
|
icon: <GoogleIcon />,
|
||||||
},
|
},
|
||||||
|
|
||||||
[OAuthProviderType.GitHub]: {
|
[OAuthProviderType.GitHub]: {
|
||||||
@@ -22,8 +22,7 @@ const OAuthProviderMap: Record<
|
|||||||
},
|
},
|
||||||
|
|
||||||
[OAuthProviderType.OIDC]: {
|
[OAuthProviderType.OIDC]: {
|
||||||
// TODO(@catsjuice): Add OIDC icon
|
icon: <LockIcon />,
|
||||||
icon: <GoogleDuotoneIcon />,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user