refactor: simplify code (#3015)

This commit is contained in:
Alex Yang
2023-07-05 01:34:22 +08:00
committed by GitHub
parent a06ba403d0
commit ec87864c34
31 changed files with 46 additions and 33 deletions

View File

@@ -6,8 +6,8 @@ import {
getCurrentNativeRange,
getVirgoByModel,
} from '@blocksuite/blocks/std';
import { assertExists } from '@blocksuite/global/utils';
import type { Page } from '@blocksuite/store';
import { assertExists } from '@blocksuite/store';
import type { FC } from 'react';
import { useCallback, useEffect, useMemo, useState } from 'react';