react-simple-dock 0.2.4 → 0.2.6

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -120,8 +120,8 @@ const NestedPanel = React.memo(({ leaves, config, index, onResize, saveSizes, is
120
120
  const renderableChildren = config.kind === "leaf"
121
121
  ? []
122
122
  : config.children
123
- .map((child, childIndex) => ({ child, childIndex }))
124
- .filter(({ child }) => isRenderableConfig(child));
123
+ .filter((child) => isRenderableConfig(child))
124
+ .map((child, childIndex) => ({ child, childIndex }));
125
125
  useEffect(() => {
126
126
  const handleMouseUp = (e) => {
127
127
  document.removeEventListener("mousemove", startEvent.current?.handleMouseMove);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simple-dock",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "main": "index.js",
5
5
  "description": "Simple dock component for React",
6
6
  "repository": "https://github.com/percevalw/react-simple-dock",