[update] - downlaod image url

This commit is contained in:
Swapnil Bendal
2024-06-10 15:12:25 +05:30
parent e312b8ed41
commit cbe367aafa
26 changed files with 65 additions and 39 deletions

View File

@@ -9,6 +9,7 @@ import { useGetUseCaseQuery } from "../../Redux/slice/useCaseSlice";
import Loader from "../Loader/Loader";
import NotFound from "../../pages/NotFound";
import img from "../../assets/images/pdfscreen.png";
const API_URL = import.meta.env.VITE_API_BASE_URL;
// eslint-disable-next-line react/prop-types
const NewUseCase = () => {
@@ -41,7 +42,7 @@ const NewUseCase = () => {
<Box
height={"75vh"}
width={"100%"}
backgroundImage={`url(https://rubix.betadelivery.com/${matchingUseCase.bannerImage})`}
backgroundImage={`url(${API_URL} /${matchingUseCase.bannerImage})`}
backgroundRepeat={"no-repeat"}
backgroundSize={"cover"}
position="relative"
@@ -246,7 +247,7 @@ const NewUseCase = () => {
{
<a
download={item.originalname}
href={`https://rubix.betadelivery.com/${item.path}`}
href={`${API_URL} /${item.path}`}
target="_blank"
>
<Button