updated base url

This commit is contained in:
parwez-zafar 2023-12-19 16:01:03 +05:30
parent 1fe2c388eb
commit 15d1fa862a
2 changed files with 9 additions and 8 deletions

View File

@ -16,7 +16,8 @@ const setupAxios = () => {
// axios.defaults.baseURL = "http://localhost:8000"; // axios.defaults.baseURL = "http://localhost:8000";
// axios.defaults.baseURL = "https://happy-sombrero-ray.cyclic.app/"; //->latest deployed // axios.defaults.baseURL = "https://happy-sombrero-ray.cyclic.app/"; //->latest deployed
axios.defaults.baseURL = "https://printsigns.onrender.com/"; //->latest deployed // axios.defaults.baseURL = "https://printsigns.onrender.com/"; //->latest deployed
axios.defaults.baseURL = "https://api.thesolarsign.com/"; //->latest deployed
axios.defaults.headers = { axios.defaults.headers = {
"Cache-Control": "no-cache,no-store", "Cache-Control": "no-cache,no-store",

View File

@ -421,9 +421,9 @@ const Design = () => {
textTransform: "capitalize", textTransform: "capitalize",
}} }}
onClick={handleOpen} onClick={handleOpen}
// onClick={() => { // onClick={() => {
// navigate("/testimonial/new", { replace: true }); // navigate("/testimonial/new", { replace: true });
// }} // }}
> >
Add New Design Add New Design
</Button> </Button>
@ -466,7 +466,7 @@ const Design = () => {
onChange={(e) => onChange={(e) =>
setDesignName( setDesignName(
e.target.value.charAt(0).toUpperCase() + e.target.value.charAt(0).toUpperCase() +
e.target.value.slice(1) e.target.value.slice(1)
) )
} }
/> />
@ -684,7 +684,7 @@ const Design = () => {
p={2} p={2}
display={"flex"} display={"flex"}
justifyContent={"right"} justifyContent={"right"}
// width={"500px"} // width={"500px"}
> >
{!edit && ( {!edit && (
<button <button
@ -826,11 +826,11 @@ const Design = () => {
<td> <td>
<img <img
className="me-2" className="me-2"
src={`http://localhost:8000/uploades/${item.designImage.filename}`} src={`https://api.thesolarsign.com/uploades/${item.designImage.filename}`}
width="40" width="40"
alt="" alt=""
/> />
<h5>{} </h5> <h5>{ } </h5>
</td> </td>
<td> <td>
<h5>{item.designName} </h5> <h5>{item.designName} </h5>