add incubation time

This commit is contained in:
Pritimay Sarkar
2023-11-07 05:55:03 +05:30
parent 420171d24a
commit a3d2bea0cc

View File

@@ -5,14 +5,14 @@ import axios from 'axios';
import './Registration.css'; import './Registration.css';
function Registration() { function Registration() {
const [userId, setUserId] = useState("2808202300103ROOBHO"); const [userId, setUserId] = useState("2808202300103SMIBLR");
const [counter, setCounter] = useState(0); const [counter, setCounter] = useState(0);
const [message, setMessage] = useState(""); const [message, setMessage] = useState("");
const [name, setName] = useState(""); const [name, setName] = useState("");
const createUser = () => { const createUser = () => {
setMessage(""); setMessage("");
const id = moment().unix() + counter + "ROOBHO"; const id = moment().unix() + counter + "SMIBLR";
setCounter(counter + 1); setCounter(counter + 1);
axios({ axios({
method: 'post', method: 'post',
@@ -39,6 +39,7 @@ function Registration() {
"state": "Karnataka", "state": "Karnataka",
"subCaste": "", "subCaste": "",
"testStatus": false, "testStatus": false,
"incubationTime": moment().subtract('15', 'minutes').utcOffset("+05:30").format("YYYY-MM-DD HH:mm:ss"),
"underMedication": false, "underMedication": false,
"underTransfusion": false, "underTransfusion": false,
"userImageURL": "https://hpos-prod.web.app/logo.png" "userImageURL": "https://hpos-prod.web.app/logo.png"