@sunggang/ui-lib 0.1.74 → 0.1.75
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/index.esm.js +6 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -79748,7 +79748,12 @@ function _unsupported_iterable_to_array$5(o, minLen) {
|
|
|
79748
79748
|
}
|
|
79749
79749
|
var DropImage = function(param) {
|
|
79750
79750
|
var _param_preview = param.preview, preview = _param_preview === void 0 ? true : _param_preview, setFiles = param.setFiles, imageUrls = param.imageUrls, setImageUrls = param.setImageUrls;
|
|
79751
|
-
var _useState = _sliced_to_array$3(useState(
|
|
79751
|
+
var _useState = _sliced_to_array$3(useState([]), 2), previewFiles = _useState[0], setPreviewFiles = _useState[1];
|
|
79752
|
+
useEffect(function() {
|
|
79753
|
+
setPreviewFiles(imageUrls);
|
|
79754
|
+
}, [
|
|
79755
|
+
imageUrls
|
|
79756
|
+
]);
|
|
79752
79757
|
var _useDropzone = useDropzone({
|
|
79753
79758
|
accept: {
|
|
79754
79759
|
"image/png": [
|