File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import {
2+ changePropertyIn ,
3+ hidePropertyIn ,
4+ Problem ,
5+ Properties ,
6+ transformGroupsIntoTabs
7+ } from "@mendix/pluggable-widgets-tools" ;
18import {
29 ContainerProps ,
310 DropZoneProps ,
@@ -7,13 +14,6 @@ import {
714 StructurePreviewProps ,
815 TextProps
916} from "@mendix/widget-plugin-platform/preview/structure-preview-api" ;
10- import {
11- changePropertyIn ,
12- hidePropertyIn ,
13- Problem ,
14- Properties ,
15- transformGroupsIntoTabs
16- } from "@mendix/pluggable-widgets-tools" ;
1717
1818import { BasicItemsPreviewType , PopupMenuPreviewProps } from "../typings/PopupMenuProps" ;
1919
Original file line number Diff line number Diff line change 11import { fireEvent , render , RenderResult } from "@testing-library/react" ;
22import { ValueStatus } from "mendix" ;
33import { createElement } from "react" ;
4+ import { MenuWithContext as Menu } from "./MenuWithContext" ;
45import { BasicItemsType , CustomItemsType } from "../../typings/PopupMenuProps" ;
56import { MenuProps } from "../components/Menu" ;
67import { actionValue , dynamicValue } from "../utils/attrValue" ;
7- import { MenuWithContext as Menu } from "./MenuWithContext" ;
88
99import "@testing-library/jest-dom" ;
1010
Original file line number Diff line number Diff line change 1- import { executeAction } from "@mendix/widget-plugin-platform/framework/execute-action" ;
21import classNames from "classnames" ;
32import { ActionValue } from "mendix" ;
43import { ReactElement , useCallback , useEffect , useState } from "react" ;
5- import { PopupMenuContainerProps } from "../../typings/PopupMenuProps" ;
6- import { usePopup } from "../hooks/usePopup" ;
4+ import { executeAction } from "@mendix/widget-plugin-platform/framework/execute-action" ;
75import { Menu } from "./Menu" ;
86import { PopupContext } from "./PopupContext" ;
97import { PopupTrigger } from "./PopupTrigger" ;
8+ import { PopupMenuContainerProps } from "../../typings/PopupMenuProps" ;
9+ import { usePopup } from "../hooks/usePopup" ;
1010
1111export function PopupMenu ( props : PopupMenuContainerProps ) : ReactElement {
1212 const [ visibility , setVisibility ] = useState ( props . menuToggle ) ;
Original file line number Diff line number Diff line change 11import { useContext } from "react" ;
2- import { PopupContext } from "../components/PopupContext" ;
32import { UsePopupReturn } from "./usePopup" ;
3+ import { PopupContext } from "../components/PopupContext" ;
44
55export const usePopupContext = ( ) : UsePopupReturn => {
66 const context = useContext ( PopupContext ) ;
You can’t perform that action at this time.
0 commit comments