mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: move useApp import to the bottom to prevent frontend test failures
This commit is contained in:
parent
216e13f744
commit
5bc1d6f6c1
@ -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() {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user