Skip to content

Commit

Permalink
made toast message time longer (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavya-egov authored May 14, 2024
1 parent 9126f80 commit d644dc2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ const UploadData = ({ formData, onSelect, ...props }) => {
};
useEffect(() => {
if (showToast) {
setTimeout(closeToast, 5000);
setTimeout(closeToast, 5000000);
}
}, [showToast]);

Expand Down Expand Up @@ -450,7 +450,7 @@ const UploadData = ({ formData, onSelect, ...props }) => {
const temp = await Digit.Hooks.campaign.useResourceData(uploadedFile, params?.hierarchyType, type, tenantId);
if (temp?.isError) {
const errorMessage = temp?.error.replaceAll(":", "-");
setShowToast({ key: "error", label: errorMessage });
setShowToast({ key: "error", label: errorMessage , transitionTime: 5000000});
setIsError(true);
setIsValidation(false);
return;
Expand Down Expand Up @@ -671,7 +671,7 @@ const UploadData = ({ formData, onSelect, ...props }) => {
warning={showToast.key === "warning" ? true : false}
info={showToast.key === "info" ? true : false}
label={t(showToast.label)}
transitionTime={6000000000}
transitionTime={showToast.transitionTime}
onClose={closeToast}
/>
)}
Expand Down

0 comments on commit d644dc2

Please sign in to comment.