@tecsinapse/cortex-react 2.3.0 → 2.3.1-beta.0
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.
|
@@ -51,9 +51,11 @@ const useFileUpload = ({
|
|
|
51
51
|
setFiles([]);
|
|
52
52
|
}, []);
|
|
53
53
|
const openManager = React.useCallback(() => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
if (!isManagerOpen) {
|
|
55
|
+
setIsManagerOpen(true);
|
|
56
|
+
onOpenManager?.();
|
|
57
|
+
}
|
|
58
|
+
}, [isManagerOpen]);
|
|
57
59
|
const closeManager = React.useCallback(() => {
|
|
58
60
|
handleClearFiles();
|
|
59
61
|
setIsManagerOpen(false);
|
|
@@ -49,9 +49,11 @@ const useFileUpload = ({
|
|
|
49
49
|
setFiles([]);
|
|
50
50
|
}, []);
|
|
51
51
|
const openManager = useCallback(() => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
if (!isManagerOpen) {
|
|
53
|
+
setIsManagerOpen(true);
|
|
54
|
+
onOpenManager?.();
|
|
55
|
+
}
|
|
56
|
+
}, [isManagerOpen]);
|
|
55
57
|
const closeManager = useCallback(() => {
|
|
56
58
|
handleClearFiles();
|
|
57
59
|
setIsManagerOpen(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "2.3.0",
|
|
3
|
+
"version": "2.3.1-beta.0+ac00ef88",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"react-icons": ">=5.2.0",
|
|
51
51
|
"tailwindcss": "^4.1.16"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ac00ef88ea0e94de0926df66d29e52e367c8276b"
|
|
54
54
|
}
|