@ctlyst.id/internal-ui 5.4.12 → 5.4.13
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/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -6020,6 +6020,10 @@ var Uploader = ({
|
|
6020
6020
|
const [filePreview, setFilePreview] = useState5();
|
6021
6021
|
const [isError, setIsError] = useState5(propIsError);
|
6022
6022
|
const [errorText, setErrorText] = useState5(propErrorText);
|
6023
|
+
useEffect4(() => {
|
6024
|
+
setIsError(propIsError);
|
6025
|
+
setErrorText(propErrorText);
|
6026
|
+
}, [propIsError, propErrorText]);
|
6023
6027
|
const toast2 = useToast();
|
6024
6028
|
const handleRejection = useCallback4(
|
6025
6029
|
(message, file, image, errorCode) => {
|