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