diff --git a/frontend-manager-cms/src/configs/constants.js b/frontend-manager-cms/src/configs/constants.js index bc759d4..f919366 100644 --- a/frontend-manager-cms/src/configs/constants.js +++ b/frontend-manager-cms/src/configs/constants.js @@ -103,7 +103,7 @@ const CONSTANTS = { * @descriptionKey TIME OUT * @return {number} */ - TIME_OUT_AXIOS: 3000, + TIME_OUT_AXIOS: 10000, /** * @author Nguyễn Tiến Tài * @created_at 22/03/2023 diff --git a/frontend-manager-cms/src/custom_hook/useUpload/uploadMediaCloud.jsx b/frontend-manager-cms/src/custom_hook/useUpload/uploadMediaCloud.jsx index 08f55c5..c39c0cd 100644 --- a/frontend-manager-cms/src/custom_hook/useUpload/uploadMediaCloud.jsx +++ b/frontend-manager-cms/src/custom_hook/useUpload/uploadMediaCloud.jsx @@ -5,7 +5,7 @@ import { useDispatch } from 'react-redux'; import { Destroy_Media_Initial, Upload_Media_Initial } from 'redux/media/upload_remove_media/media_thunk'; //!SHARE -import CONSTANTS from 'configs/constants'; +import CONSTANTS from '../../configs/constants'; import { useState } from 'react'; import NOTIFICATION from 'utils/notification'; diff --git a/frontend-manager-student/src/configs/constants.js b/frontend-manager-student/src/configs/constants.js index b8f4e14..0f70f33 100644 --- a/frontend-manager-student/src/configs/constants.js +++ b/frontend-manager-student/src/configs/constants.js @@ -114,7 +114,7 @@ const CONSTANTS = { * @descriptionKey TIME OUT * @return {number} */ - TIME_OUT_AXIOS: 3000, + TIME_OUT_AXIOS: 10000, /** * @author Nguyễn Tiến Tài * @created_at 22/03/2023 diff --git a/frontend-manager-student/src/custom_hook/useUpload/uploadMediaCloud.jsx b/frontend-manager-student/src/custom_hook/useUpload/uploadMediaCloud.jsx index 08f55c5..435da2d 100644 --- a/frontend-manager-student/src/custom_hook/useUpload/uploadMediaCloud.jsx +++ b/frontend-manager-student/src/custom_hook/useUpload/uploadMediaCloud.jsx @@ -1,12 +1,12 @@ //!LIBRARY +import { useState } from 'react'; import { useDispatch } from 'react-redux'; //!REDUX THUNK import { Destroy_Media_Initial, Upload_Media_Initial } from 'redux/media/upload_remove_media/media_thunk'; //!SHARE -import CONSTANTS from 'configs/constants'; -import { useState } from 'react'; +import CONSTANTS from '../../configs/constants'; import NOTIFICATION from 'utils/notification'; const useUploadCloud = () => {