odaptos_design_system 2.0.157 → 2.0.158

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.
@@ -12159,10 +12159,13 @@ const FileInput = ({
12159
12159
  const ref = React.useRef(null);
12160
12160
  const [value, setValue] = React.useState(undefined);
12161
12161
  const onChange = async e => {
12162
+ console.log(e.target.files, 'E.TARGET.FILES');
12162
12163
  if (e.target.files && e.target.files.length > 0) {
12163
12164
  const file = e.target.files[0];
12164
12165
  const isResolutionCorrect = await checkImageResolution(e.target.files[0], resolution);
12165
12166
  const isSizeCorrect = file.size <= maxSize;
12167
+ console.log(isResolutionCorrect, 'IS RESOLUTION CORRECT');
12168
+ console.log(isSizeCorrect, 'IS SIZE CORRECT');
12166
12169
  if (isSizeCorrect && isResolutionCorrect) {
12167
12170
  setValue(file);
12168
12171
  } else {
@@ -12171,6 +12174,7 @@ const FileInput = ({
12171
12174
  }
12172
12175
  };
12173
12176
  React.useEffect(() => {
12177
+ console.log(value, 'VALUE');
12174
12178
  if (value) {
12175
12179
  onUpload(name, value);
12176
12180
  }