@etsoo/materialui 1.2.37 → 1.2.38

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.
@@ -10,7 +10,6 @@ const defaultState = {
10
10
  scale: 1,
11
11
  rotate: 0
12
12
  };
13
- const AE = React.lazy(() => import("react-avatar-editor"));
14
13
  /**
15
14
  * User avatar editor
16
15
  * https://github.com/mosch/react-avatar-editor
@@ -111,6 +110,8 @@ export function UserAvatarEditor(props) {
111
110
  onDone(data, toBlob);
112
111
  }
113
112
  };
113
+ // Load the component
114
+ const AE = React.lazy(() => import("react-avatar-editor"));
114
115
  return (React.createElement(Stack, { direction: "column", spacing: 0.5, width: containerWidth },
115
116
  React.createElement(Button, { variant: "outlined", size: "medium", component: "label", startIcon: React.createElement(ComputerIcon, null), fullWidth: true },
116
117
  labels.upload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.2.37",
3
+ "version": "1.2.38",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -76,8 +76,6 @@ const defaultState: EditorState = {
76
76
  rotate: 0
77
77
  };
78
78
 
79
- const AE = React.lazy(() => import("react-avatar-editor"));
80
-
81
79
  /**
82
80
  * User avatar editor
83
81
  * https://github.com/mosch/react-avatar-editor
@@ -214,6 +212,9 @@ export function UserAvatarEditor(props: UserAvatarEditorProps) {
214
212
  }
215
213
  };
216
214
 
215
+ // Load the component
216
+ const AE = React.lazy(() => import("react-avatar-editor"));
217
+
217
218
  return (
218
219
  <Stack direction="column" spacing={0.5} width={containerWidth}>
219
220
  <Button