diff --git a/src/_base/FunctionBase.js b/src/_base/FunctionBase.js index 6e5c01a..338e3d3 100644 --- a/src/_base/FunctionBase.js +++ b/src/_base/FunctionBase.js @@ -3,6 +3,8 @@ import { LinkApp } from "../_constants/linkDownloadApp"; import { history } from "../_helpers"; export const handleNavigateCurriculumDownload = (type) => { + const urlParams = new URLSearchParams(window.location.search); + const mds = urlParams.get('mds'); const osMobile = getMobileOperatingSystem(); if (osMobile == "Android") { window.open(LinkApp[`${type}`].GG_PLAY, "_blank"); @@ -21,6 +23,6 @@ export const handleNavigateCurriculumDownload = (type) => { // // history.push(`/login`); // } - history.push(`/download_page/${type}`); + history.push(`/download_page/${type}?mds=${mds}`); } }; diff --git a/src/_components/AdvisementForm/AdvisementForm.jsx b/src/_components/AdvisementForm/AdvisementForm.jsx index 977f238..1d62d07 100644 --- a/src/_components/AdvisementForm/AdvisementForm.jsx +++ b/src/_components/AdvisementForm/AdvisementForm.jsx @@ -6,6 +6,8 @@ import InputSelectNews from "../Input/InputSelect"; import { userConstants } from "../../_constants"; import ModalSuccessMsg from "../Modal/ModalSuccessMsg/ModalSuccessMsg"; import LazyLoad from "react-lazyload"; +import { useSelector } from "react-redux"; +import { Alert } from "../Alert"; const AdvisementForm = (props) => { let { @@ -37,12 +39,22 @@ const AdvisementForm = (props) => { setGradeError, isSuccessRegist, handleCloseModal, + email, + emailError, + changeEmail, + setEmailError, + message, + changeMessage } = advisementLogic(props); + const alert = useSelector((state) => state.alert); return (
{props.message}
+{props.message}