mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:46:00 +00:00
fix: cannot access 'ActionPage' before initialization (#5125)
This commit is contained in:
parent
7ff13ff39e
commit
ffcc60cadf
@ -15,10 +15,8 @@ import { BackButtonUsedInSubPage } from '../page/BackButtonUsedInSubPage';
|
||||
import { TabsContextProvider, useTabsContext } from '../tabs/context';
|
||||
import { useActionPageStyle } from './Action.Page.style';
|
||||
import { usePopupOrSubpagesContainerDOM } from './hooks/usePopupSlotDOM';
|
||||
import { ComposedActionDrawer } from './types';
|
||||
|
||||
export const ActionPage: ComposedActionDrawer = observer(
|
||||
({ level }) => {
|
||||
export function ActionPage({ level }) {
|
||||
const filedSchema = useFieldSchema();
|
||||
const ctx = useActionContext();
|
||||
const { getContainerDOM } = usePopupOrSubpagesContainerDOM();
|
||||
@ -51,9 +49,7 @@ export const ActionPage: ComposedActionDrawer = observer(
|
||||
}
|
||||
|
||||
return actionPageNode;
|
||||
},
|
||||
{ displayName: 'ActionPage' },
|
||||
);
|
||||
}
|
||||
|
||||
ActionPage.Footer = observer(
|
||||
() => {
|
||||
|
Loading…
Reference in New Issue
Block a user