modified edit container
This commit is contained in:
parent
cbcbf33228
commit
caf3eca000
2
.env
2
.env
|
|
@ -2,5 +2,5 @@
|
||||||
METABASE_BASE_URL="http://metabase.usln.in/public/question/d8774923-09bb-4cd9-903b-559d417e12cf"
|
METABASE_BASE_URL="http://metabase.usln.in/public/question/d8774923-09bb-4cd9-903b-559d417e12cf"
|
||||||
|
|
||||||
VITE_REACT_APP_BACKEND_URL="http://localhost:9999"
|
VITE_REACT_APP_BACKEND_URL="http://localhost:9999"
|
||||||
#VITE_REACT_APP_BACKEND_URL="https://api.exampaper.vidh.ai"
|
#VITE_REACT_APP_BACKEND_URL="https://api.dev.exampaper.usln.in"
|
||||||
#VITE_REACT_APP_BACKEND_URL="https://api.exampaper.usln.in"
|
#VITE_REACT_APP_BACKEND_URL="https://api.exampaper.usln.in"
|
||||||
|
|
|
||||||
|
|
@ -111,32 +111,6 @@ const IndividualMarksheetGen = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const parseCreatedOn = (dateValue) => {
|
|
||||||
console.log("parse created on ....", typeof dateValue);
|
|
||||||
if (!dateValue) {
|
|
||||||
return null; // Handle invalid input
|
|
||||||
} else if (typeof dateValue == "number") {
|
|
||||||
dateValue = String(dateValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
const year = parseInt(dateValue.substring(0, 4), 10);
|
|
||||||
console.log("year ===== ", year);
|
|
||||||
const month = parseInt(dateValue.substring(4, 6), 10) - 1; // Month is 0-based in JS
|
|
||||||
const day = parseInt(dateValue.substring(6, 8), 10);
|
|
||||||
const hours = parseInt(dateValue.substring(8, 10), 10);
|
|
||||||
const minutes = parseInt(dateValue.substring(10, 12), 10);
|
|
||||||
const seconds = parseInt(dateValue.substring(12, 14), 10);
|
|
||||||
|
|
||||||
const parsedDate = new Date(year, month, day, hours, minutes, seconds);
|
|
||||||
|
|
||||||
// Check if the date is valid
|
|
||||||
if (isNaN(parsedDate.getTime())) {
|
|
||||||
return null; // Invalid date
|
|
||||||
}
|
|
||||||
|
|
||||||
return parsedDate;
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AntdesignLayout>
|
<AntdesignLayout>
|
||||||
<Box
|
<Box
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ const PlayGroundEditContainer = ({
|
||||||
const [open, setOpen] = useState(true); // Set open state to true by default
|
const [open, setOpen] = useState(true); // Set open state to true by default
|
||||||
const [serialNo, setSerialNo] = useState(null);
|
const [serialNo, setSerialNo] = useState(null);
|
||||||
|
|
||||||
|
|
||||||
const [notification, setNotification] = useState(null); // Notification state
|
const [notification, setNotification] = useState(null); // Notification state
|
||||||
|
|
||||||
const showNotification = (message, type) => {
|
const showNotification = (message, type) => {
|
||||||
|
|
@ -135,6 +136,7 @@ const PlayGroundEditContainer = ({
|
||||||
table: tableName,
|
table: tableName,
|
||||||
s3Path,
|
s3Path,
|
||||||
subjectCode,
|
subjectCode,
|
||||||
|
registerNumber,
|
||||||
marks,
|
marks,
|
||||||
marksR1,
|
marksR1,
|
||||||
marksR2,
|
marksR2,
|
||||||
|
|
@ -272,6 +274,11 @@ const PlayGroundEditContainer = ({
|
||||||
setValue={setSubjectCode}
|
setValue={setSubjectCode}
|
||||||
placeholder={"Subject code"}
|
placeholder={"Subject code"}
|
||||||
/>
|
/>
|
||||||
|
<TextInputField
|
||||||
|
value={registerNumber}
|
||||||
|
setValue={setRegisterNumber}
|
||||||
|
placeholder={"Register Number"}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue