mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat: move data center to root
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { signInWithGoogle } from '@affine/datacenter';
|
||||
import { getDataCenter } from '@affine/datacenter';
|
||||
import { styled } from '@/styles';
|
||||
import { Button } from '@/ui/button';
|
||||
import { useModal } from '@/providers/global-modal-provider';
|
||||
@@ -9,7 +9,8 @@ export const GoogleLoginButton = () => {
|
||||
return (
|
||||
<StyledGoogleButton
|
||||
onClick={() => {
|
||||
signInWithGoogle()
|
||||
getDataCenter()
|
||||
.then(dc => dc.apis.signInWithGoogle())
|
||||
.then(() => {
|
||||
triggerLoginModal();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user