update for prod

This commit is contained in:
Mohamed Nouffer
2023-07-26 23:24:45 +05:30
parent d8bf6af7ef
commit d9fb0fd3e4
26 changed files with 43 additions and 43 deletions

View File

@ -33,7 +33,7 @@ import "react-datepicker/dist/react-datepicker.css";
function Index() {
const baseUrl = "https://openshield.ts.bizside.biz";
const baseUrl = "https://openshield.bizside.biz";
const [data, setData] = useState([]);
@ -48,7 +48,7 @@ function Index() {
useEffect(() => {
async function fetchData() {
// You can await here
const result = await axios('https://openshield.ts.bizside.biz/getConstructionList');
const result = await axios('https://openshield.bizside.biz/getConstructionList');
setData(result.data);
}
fetchData();
@ -58,7 +58,7 @@ function Index() {
async function fetchData() {
// You can await here
if(selectedcons !== "" && report !== "" && isDate() == true) {
const result = await axios('https://openshield.ts.bizside.biz/getDateToHaveData?construction_id=' + selectedcons + '&sheetname=' + report);
const result = await axios('https://openshield.bizside.biz/getDateToHaveData?construction_id=' + selectedcons + '&sheetname=' + report);
setValidDates(result.data.record);
}
}