mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 14:56:59 +08:00
style: enable import-x/no-duplicates (#6279)
This commit is contained in:
@@ -1,24 +1,17 @@
|
||||
import { events } from '@affine/electron-api';
|
||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||
import { WorkspaceManager } from '@toeverything/infra';
|
||||
import { useService } from '@toeverything/infra';
|
||||
import { useLiveData } from '@toeverything/infra';
|
||||
import { useLiveData, useService, WorkspaceManager } from '@toeverything/infra';
|
||||
import { useAtom } from 'jotai';
|
||||
import {
|
||||
lazy,
|
||||
type ReactElement,
|
||||
Suspense,
|
||||
useCallback,
|
||||
useEffect,
|
||||
} from 'react';
|
||||
import type { ReactElement } from 'react';
|
||||
import { lazy, Suspense, useCallback, useEffect } from 'react';
|
||||
|
||||
import type { SettingAtom } from '../atoms';
|
||||
import {
|
||||
authAtom,
|
||||
openCreateWorkspaceModalAtom,
|
||||
openDisableCloudAlertModalAtom,
|
||||
openSettingModalAtom,
|
||||
openSignOutModalAtom,
|
||||
type SettingAtom,
|
||||
} from '../atoms';
|
||||
import { PaymentDisableModal } from '../components/affine/payment-disable';
|
||||
import { useAsyncCallback } from '../hooks/affine-async-hooks';
|
||||
|
||||
@@ -5,12 +5,8 @@ import { affine } from '@affine/electron-api';
|
||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||
import { CLOUD_WORKSPACE_CHANGED_BROADCAST_CHANNEL_KEY } from '@affine/workspace-impl';
|
||||
import { useSetAtom } from 'jotai';
|
||||
import {
|
||||
type PropsWithChildren,
|
||||
startTransition,
|
||||
useEffect,
|
||||
useRef,
|
||||
} from 'react';
|
||||
import type { PropsWithChildren } from 'react';
|
||||
import { startTransition, useEffect, useRef } from 'react';
|
||||
|
||||
import { useOnceSignedInEvents } from '../atoms/event';
|
||||
import { mixpanel } from '../utils';
|
||||
|
||||
Reference in New Issue
Block a user