feat: move data center to root

This commit is contained in:
DarkSky
2023-01-02 23:23:29 +08:00
committed by DarkSky
parent 2913da11a0
commit b105eaf9a6
21 changed files with 109 additions and 86 deletions

View File

@@ -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();
})