style: restrict type import (#1589)

This commit is contained in:
Himself65
2023-03-15 11:58:43 -05:00
committed by GitHub
parent 6ab2f83e13
commit efcf1fcaa0
154 changed files with 332 additions and 307 deletions
@@ -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 -1
View File
@@ -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) {