mirror of
https://github.com/WDI-Ideas/rubix.git
synced 2026-04-29 02:05:50 +00:00
[update] - downlaod image url
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user