@openmrs/esm-implementer-tools-app 3.2.1-pre.1018 → 3.2.1-pre.1028

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,18 @@
1
1
  import React from "react";
2
2
  import styles from "./styles.css";
3
3
  import Close16 from "@carbon/icons-react/es/close/16";
4
- import { useExtensionInternalStore, useStore } from "@openmrs/esm-framework";
4
+ import {
5
+ getExtensionInternalStore,
6
+ useStore,
7
+ useStoreWithActions,
8
+ } from "@openmrs/esm-framework";
5
9
  import { Button } from "carbon-components-react";
6
10
  import { Portal } from "./portal";
7
11
  import { ExtensionOverlay } from "./extension-overlay.component";
8
12
  import { ImplementerToolsStore, implementerToolsStore } from "../store";
9
13
 
10
14
  export default function UiEditor() {
11
- const { slots, extensions } = useExtensionInternalStore();
15
+ const { slots, extensions } = useStore(getExtensionInternalStore());
12
16
  const { isOpen: implementerToolsIsOpen } = useStore(implementerToolsStore);
13
17
 
14
18
  return (
@@ -66,7 +70,10 @@ const actions = {
66
70
  };
67
71
 
68
72
  export function ExitButton() {
69
- const { toggleIsUIEditorEnabled } = useStore(implementerToolsStore, actions);
73
+ const { toggleIsUIEditorEnabled } = useStoreWithActions(
74
+ implementerToolsStore,
75
+ actions
76
+ );
70
77
  return (
71
78
  <Button
72
79
  className={styles.exitButton}