fix: move useApp import to the bottom to prevent frontend test failures

This commit is contained in:
Zeke Zhang 2025-03-07 12:55:07 +08:00
parent 216e13f744
commit 5bc1d6f6c1

View File

@ -19,7 +19,6 @@ import { useTranslation } from 'react-i18next';
import { ErrorFallback, StablePopover, TabsContextProvider, useActionContext } from '../..'; import { ErrorFallback, StablePopover, TabsContextProvider, useActionContext } from '../..';
import { useDesignable } from '../../'; import { useDesignable } from '../../';
import { useACLActionParamsContext } from '../../../acl'; import { useACLActionParamsContext } from '../../../acl';
import { useApp } from '../../../application';
import { import {
useCollectionParentRecordData, useCollectionParentRecordData,
useCollectionRecordData, useCollectionRecordData,
@ -50,6 +49,9 @@ import { useGetAriaLabelOfAction } from './hooks/useGetAriaLabelOfAction';
import { ActionContextProps, ActionProps, ComposedAction } from './types'; import { ActionContextProps, ActionProps, ComposedAction } from './types';
import { linkageAction, setInitialActionState } from './utils'; import { linkageAction, setInitialActionState } from './utils';
// 这个要放到最下面,否则会导致前端单测失败
import { useApp } from '../../../application';
const useA = () => { const useA = () => {
return { return {
async run() {}, async run() {},