diff --git a/src/pages/Proof/Payment/Pay.js b/src/pages/Proof/Payment/Pay.js
index 03da615..2838c98 100644
--- a/src/pages/Proof/Payment/Pay.js
+++ b/src/pages/Proof/Payment/Pay.js
@@ -4,6 +4,7 @@ import {
Typography,
Stack,
Button,
+ Dialog, DialogTitle, DialogContent, DialogActions
} from '@mui/material';
import * as UrlUtils from "utils/ApiPathConst";
import * as React from "react";
@@ -11,6 +12,7 @@ import * as HttpUtils from "utils/HttpUtils";
import { useParams } from "react-router-dom";
import { useNavigate } from "react-router-dom";
import * as DateUtils from "utils/DateUtils"
+import * as FormatUtils from "utils/FormatUtils";
import Loadable from 'components/Loadable';
const LoadingComponent = Loadable(React.lazy(() => import('pages/extra-pages/LoadingComponent')));
@@ -26,14 +28,20 @@ const BackgroundHead = {
backgroundPosition: 'right'
}
+import {
+ // useEffect,
+ useState
+} from "react";
// ==============================|| DASHBOARD - DEFAULT ||============================== //
const Index = () => {
const params = useParams();
const navigate = useNavigate()
+ const [fee, setFee] = useState(0);
const [record, setRecord] = React.useState();
const [onReady, setOnReady] = React.useState(false);
+ const [isPopUp, setIsPopUp] = useState(false);
React.useEffect(() => {
loadForm();
@@ -53,11 +61,17 @@ const Index = () => {
navigate("/proof/search");
}
setRecord(responseData.data);
+ setFee(responseData.data.fee);
}
});
}
}
+ function doPayment() {
+ setIsPopUp(false);
+ navigate('/paymentPage', { state: { amount: fee, appIdList: [record.id] } });
+ }
+
return (
!onReady ?