refactor: move command registry to frontend/core (#7135)

move command registeration related logic out of infra module.
This commit is contained in:
pengx17
2024-06-05 14:09:20 +00:00
parent fa4e4c738a
commit de81527e29
24 changed files with 31 additions and 32 deletions

View File

@@ -1,8 +1,8 @@
import {
PreconditionStrategy,
registerAffineCommand,
useService,
} from '@toeverything/infra';
} from '@affine/core/commands';
import { useService } from '@toeverything/infra';
import { useEffect } from 'react';
import { NavigatorService } from '../services/navigator';