fix(core): refresh metadata after refresh (#4054)

This commit is contained in:
Alex Yang
2023-08-30 16:22:34 -05:00
committed by GitHub
parent 441e706746
commit 517f4afb31
10 changed files with 204 additions and 132 deletions

View File

@@ -1,10 +1,10 @@
import { UserAvatar } from '@affine/component/user-avatar';
import { useAFFiNEI18N } from '@affine/i18n/hooks';
import { CloudWorkspaceIcon } from '@blocksuite/icons';
import { signIn } from 'next-auth/react';
import { useCurrentLoginStatus } from '../../hooks/affine/use-current-login-status';
import { useCurrentUser } from '../../hooks/affine/use-current-user';
import { signInCloud } from '../../utils/cloud-utils';
import { StyledSignInButton } from '../pure/footer/styles';
export const LoginCard = () => {
@@ -17,8 +17,7 @@ export const LoginCard = () => {
<StyledSignInButton
data-testid="sign-in-button"
onClick={async () => {
// jump to login page
signIn().catch(console.error);
signInCloud().catch(console.error);
}}
>
<div className="circle">