diff --git a/src/pages/ProofCreate_FromApp/ApplicationDetails.js b/src/pages/ProofCreate_FromApp/ApplicationDetails.js
index 474391c..f91d8f4 100644
--- a/src/pages/ProofCreate_FromApp/ApplicationDetails.js
+++ b/src/pages/ProofCreate_FromApp/ApplicationDetails.js
@@ -3,8 +3,7 @@ import {
CardContent,
Grid,
Stack,
- FormControl,
- OutlinedInput,
+ TextField,
FormLabel,
} from '@mui/material';
import MainCard from "components/MainCard";
@@ -13,29 +12,40 @@ import { useFormik } from 'formik';
// ==============================|| DASHBOARD - DEFAULT ||============================== //
-const SearchPublicNoticeForm = (formData) => {
-
+const SearchPublicNoticeForm = ({formData}) => {
+
+ const [data, setData] = React.useState({});
+
+ React.useEffect(() => {
+ if(formData)
+ setData(formData);
+ }, [formData]);
+
const formik = useFormik({
enableReinitialize: true,
- initialValues: formData,
+ initialValues: data,
});
- const DisplayField = ({name}) => {
- return
- {
+ return
- ;
+ width: width ? width : '100%'
+ }
+ }
+ />;
}
@@ -53,7 +63,7 @@ const SearchPublicNoticeForm = (formData) => {
{/*row 2*/}
-
+
@@ -68,38 +78,10 @@ const SearchPublicNoticeForm = (formData) => {
-
-
-
- {/*
-
-
- Status:
-
-
-
- {StatusUtils.getStatusByTextEng(currentApplicationDetailData.status)}
-
-
-
- */}
@@ -111,34 +93,9 @@ const SearchPublicNoticeForm = (formData) => {
-
- {formik.values.orgId === null ?
- :
-
- }
-
+
@@ -151,39 +108,14 @@ const SearchPublicNoticeForm = (formData) => {
-
-
-
-
-
-
+
+
@@ -199,20 +131,9 @@ const SearchPublicNoticeForm = (formData) => {
-
-
-
+
@@ -225,41 +146,14 @@ const SearchPublicNoticeForm = (formData) => {
-
-
-
-
-
-
+
+
diff --git a/src/pages/ProofCreate_FromApp/GazetteDetails.js b/src/pages/ProofCreate_FromApp/GazetteDetails.js
index c77b148..c6cba0f 100644
--- a/src/pages/ProofCreate_FromApp/GazetteDetails.js
+++ b/src/pages/ProofCreate_FromApp/GazetteDetails.js
@@ -1,9 +1,9 @@
// material-ui
import {
- FormControl,
- Grid,
- FormLabel,
- OutlinedInput,
+ Grid,
+ CardContent,
+ FormLabel,
+ TextField,
} from '@mui/material';
import MainCard from "components/MainCard";
import * as React from "react";
@@ -11,33 +11,52 @@ import { useFormik } from 'formik';
// ==============================|| DASHBOARD - DEFAULT ||============================== //
-const GazetteDetails = ({formData}) => {
+const GazetteDetails = ({ formData }) => {
+
+ const [data, setData] = React.useState({});
+
+ React.useEffect(() => {
+ if (formData)
+ setData(formData);
+ }, [formData]);
const formik = useFormik({
enableReinitialize: true,
- initialValues: formData,
+ initialValues: data,
});
- // function getIssueLabel(data) {
- // if (data == {}) return "";
- // return data.year
- // + " Vol. " + zeroPad(data.volume, 3)
- // + ", No. " + zeroPad(data.issueNo, 2)
- // + ", " + DateUtils.dateFormat(data.issueDate, "D MMM YYYY (ddd)");
- // }
- // function zeroPad(num, places) {
- // num = num ? num : 0;
- // var zero = places - num.toString().length + 1;
- // return Array(+(zero > 0 && zero)).join("0") + num;
- // }
+ const DisplayField = ({ name, width }) => {
+ return ;
+ }
+
return (
+ content={false}
+ style={{ height: '100%'}}
+ >
-