+
+
+
+
+
+ Payment Details
+
+
+
+ {/*row 1*/}
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- {/*row 2*/}
-
-
+ {/*row 2*/}
+
+
)
diff --git a/src/pages/Payment/Details_Public/index.js b/src/pages/Payment/Details_Public/index.js
index d6d5dca..e5be45b 100644
--- a/src/pages/Payment/Details_Public/index.js
+++ b/src/pages/Payment/Details_Public/index.js
@@ -3,7 +3,8 @@ import {
Grid,
Typography,
Stack,
- Box
+ Box,
+ Button
} from '@mui/material';
import * as UrlUtils from "utils/ApiPathConst";
import * as React from "react";
@@ -36,15 +37,26 @@ const Index = () => {
const [record, setRecord] = React.useState();
const [itemList, setItemList] = React.useState([]);
const [onReady, setOnReady] = React.useState(false);
+ const [detailsOrder, setDetailsOrder] = React.useState(2);
React.useEffect(() => {
loadForm();
+
+ window.addEventListener('resize', handleResize)
}, []);
React.useEffect(() => {
setOnReady(true);
}, [record]);
+ const handleResize = () => {
+ setDetailsOrder(window.innerWidth > 1023 ? 2 : -1);
+ }
+
+ const doPrint = () => {
+ window.print();
+ };
+
const loadForm = () => {
if (params.id > 0) {
@@ -69,41 +81,49 @@ const Index = () => {