@onehat/ui 0.2.15 → 0.2.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -13,12 +13,15 @@ import {
13
13
  v4 as uuid,
14
14
  } from 'uuid';
15
15
 
16
- let Draggable;
16
+ let DraggableToImport;
17
17
  if (CURRENT_MODE === UI_MODE_WEB) {
18
- Draggable = await import('react-draggable'); // https://github.com/react-grid-layout/react-draggable
18
+ DraggableToImport = 'react-draggable'; // https://github.com/react-grid-layout/react-draggable
19
19
  } else if (CURRENT_MODE === UI_MODE_REACT_NATIVE) {
20
- Draggable = await import('react-native-draggable'); // https://github.com/tongyy/react-native-draggable
20
+ DraggableToImport = 'react-native-draggable'; // https://github.com/tongyy/react-native-draggable
21
21
  }
22
+ const Draggable = await import(DraggableToImport);
23
+
24
+
22
25
 
23
26
  // Note on modes:
24
27
  // HORIZONTAL means the component moves along the X axis.