mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-21 00:07:01 +08:00
chore: rename data services
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { createContext, MutableRefObject, useContext } from 'react';
|
||||
import type { Workspace } from '@affine/data-services';
|
||||
import { AccessTokenMessage } from '@affine/data-services';
|
||||
import type { Workspace } from '@affine/datacenter';
|
||||
import { AccessTokenMessage } from '@affine/datacenter';
|
||||
import type {
|
||||
Page as StorePage,
|
||||
Workspace as StoreWorkspace,
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import { useEffect } from 'react';
|
||||
import {
|
||||
AccessTokenMessage,
|
||||
getWorkspaces,
|
||||
token,
|
||||
} from '@affine/data-services';
|
||||
import { AccessTokenMessage, getWorkspaces, token } from '@affine/datacenter';
|
||||
import { LoadWorkspaceHandler } from '../context';
|
||||
|
||||
export const useSyncData = ({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useMemo, useState, useEffect, useCallback, useRef } from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { getWorkspaces } from '@affine/data-services';
|
||||
import { getWorkspaces } from '@affine/datacenter';
|
||||
import { AppState, AppStateContext } from './context';
|
||||
import type {
|
||||
AppStateValue,
|
||||
|
||||
Reference in New Issue
Block a user