ywana-core8 0.0.384 → 0.0.385

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.
@@ -2743,7 +2743,8 @@ var EventCard = function EventCard(props) {
2743
2743
  */
2744
2744
 
2745
2745
  var UploadArea = function UploadArea(props) {
2746
- var icon = props.icon,
2746
+ var resumable = props.resumable,
2747
+ icon = props.icon,
2747
2748
  _props$label = props.label,
2748
2749
  label = _props$label === void 0 ? 'Add file or drop file here...' : _props$label;
2749
2750
  var areaElement = useRef();
@@ -2753,8 +2754,6 @@ var UploadArea = function UploadArea(props) {
2753
2754
  setDrag = _useState[1];
2754
2755
 
2755
2756
  useEffect(function () {
2756
- var resumable = props.resumable;
2757
-
2758
2757
  if (resumable && areaElement) {
2759
2758
  resumable.assignDrop(areaElement.current);
2760
2759
  resumable.assignBrowse(areaElement.current);
@@ -2775,10 +2774,9 @@ var UploadArea = function UploadArea(props) {
2775
2774
  onDragOver: onDragOver,
2776
2775
  onDragLeave: onDragLeave,
2777
2776
  ref: areaElement
2778
- }, /*#__PURE__*/React.createElement(Icon, {
2777
+ }, /*#__PURE__*/React.createElement(UploadIcon, {
2779
2778
  icon: icon,
2780
- clickable: true,
2781
- eventPropagation: true
2779
+ resumable: resumable
2782
2780
  }), /*#__PURE__*/React.createElement("label", null, label));
2783
2781
  };
2784
2782
  /**
@@ -2800,8 +2798,7 @@ var UploadIcon = function UploadIcon(_ref) {
2800
2798
  className: "upload-icon",
2801
2799
  ref: iconElement
2802
2800
  }, /*#__PURE__*/React.createElement(Icon, {
2803
- icon: icon,
2804
- clickable: true
2801
+ icon: icon
2805
2802
  }));
2806
2803
  };
2807
2804