Merge branch 'feature/debug_upload_file' into 'develop'
Feature/debug upload file See merge request witel3/loan-facilities-expert!57
This commit is contained in:
@@ -61,6 +61,7 @@ const ConfirmForm = ({ open, handleClose, rowId, confirmData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
@@ -53,6 +53,7 @@ const RejectForm = ({ open, handleClose, rowId, rejectData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
@@ -62,6 +62,7 @@ const ConfirmForm = ({ open, handleClose, rowId, confirmData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
@@ -53,6 +53,7 @@ const RejectForm = ({ open, handleClose, rowId, rejectData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
@@ -48,6 +48,7 @@ const ConfirmForm = ({ open, handleClose, rowId, confirmData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
@@ -52,6 +52,7 @@ const RejectForm = ({ open, handleClose, rowId, rejectData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
@@ -48,6 +48,7 @@ const ConfirmForm = ({ open, handleClose, rowId, confirmData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
@@ -52,6 +52,7 @@ const RejectForm = ({ open, handleClose, rowId, rejectData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
@@ -45,6 +45,7 @@ const ConfirmForm = ({ open, handleClose, rowId, confirmData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ const RejectForm = ({ open, handleClose, rowId, rejectData }) => {
|
||||
const [fileName, setfileName] = useState(null);
|
||||
const [showAddIcon, setShowAddIcon] = useState(true);
|
||||
const t = useTranslations();
|
||||
const { directionApp } = useDirection();
|
||||
const { directionApp } = useDirection();
|
||||
|
||||
const validationSchema = Yup.object().shape({
|
||||
description: Yup.string().required(t("RejectDialog.description_error")),
|
||||
@@ -52,6 +52,7 @@ const RejectForm = ({ open, handleClose, rowId, rejectData }) => {
|
||||
const maxFileSize = 2 * 1024 * 1024;
|
||||
if (uploadedFile.size > maxFileSize) {
|
||||
UploadFileNotification(directionApp, t);
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
const fileType = event.target?.files?.[0].type;
|
||||
|
||||
Reference in New Issue
Block a user