mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 10:36:22 +08:00
style: restrict type import (#1589)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { PermissionType } from '@affine/datacenter';
|
||||
|
||||
import { AffineOfficialWorkspace } from '../../shared';
|
||||
import type { AffineOfficialWorkspace } from '../../shared';
|
||||
|
||||
export function useIsWorkspaceOwner(workspace: AffineOfficialWorkspace) {
|
||||
if (workspace.flavour === 'local') return true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Member } from '@affine/datacenter';
|
||||
import type { Member } from '@affine/datacenter';
|
||||
import { useCallback } from 'react';
|
||||
import useSWR from 'swr';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useAtomValue, useSetAtom } from 'jotai';
|
||||
import { NextRouter } from 'next/router';
|
||||
import type { NextRouter } from 'next/router';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import {
|
||||
|
||||
@@ -3,7 +3,7 @@ import useSWR from 'swr';
|
||||
|
||||
import { jotaiStore, jotaiWorkspacesAtom } from '../../atoms';
|
||||
import { QueryKey } from '../../plugins/affine/fetcher';
|
||||
import { AffineWorkspace } from '../../shared';
|
||||
import type { AffineWorkspace } from '../../shared';
|
||||
import { apis } from '../../shared/apis';
|
||||
|
||||
export function useToggleWorkspacePublish(workspace: AffineWorkspace) {
|
||||
|
||||
Reference in New Issue
Block a user