diff --git a/public/images/headerLogo.png b/src/assets/images/headerLogo.png similarity index 100% rename from public/images/headerLogo.png rename to src/assets/images/headerLogo.png diff --git a/public/images/locationMarker.png b/src/assets/images/locationMarker.png similarity index 100% rename from public/images/locationMarker.png rename to src/assets/images/locationMarker.png diff --git a/public/images/rmsLogo.png b/src/assets/images/rmsLogo.png similarity index 100% rename from public/images/rmsLogo.png rename to src/assets/images/rmsLogo.png diff --git a/src/components/dashboard/inquiryPrivacyFencing/Forms/LocationOnMap/MarkerLocation/index.jsx b/src/components/dashboard/inquiryPrivacyFencing/Forms/LocationOnMap/MarkerLocation/index.jsx index 0219c9e..d673679 100644 --- a/src/components/dashboard/inquiryPrivacyFencing/Forms/LocationOnMap/MarkerLocation/index.jsx +++ b/src/components/dashboard/inquiryPrivacyFencing/Forms/LocationOnMap/MarkerLocation/index.jsx @@ -1,10 +1,9 @@ import { useRef } from "react"; import { Marker, useMapEvents } from "react-leaflet"; - -const prefix = process.env.NODE_ENV === "production" ? "/v3" : ""; +import LocationMarker from "@/assets/images/locationMarker.png"; const locationMarker = L.icon({ - iconUrl: prefix + "/images/locationMarker.png", + iconUrl: LocationMarker.src, iconSize: [50, 50], iconAnchor: [25, 50], }); diff --git a/src/components/layouts/dashboard/headerWithLogo/HaederBottom/index.jsx b/src/components/layouts/dashboard/headerWithLogo/HaederBottom/index.jsx index 4f0b159..f23833c 100644 --- a/src/components/layouts/dashboard/headerWithLogo/HaederBottom/index.jsx +++ b/src/components/layouts/dashboard/headerWithLogo/HaederBottom/index.jsx @@ -1,6 +1,7 @@ "use client"; import { Stack, Typography } from "@mui/material"; import Image from "next/image"; +import RmsLogo from "@/assets/images/rmsLogo.png"; const HeaderBottom = () => { return ( @@ -14,7 +15,7 @@ const HeaderBottom = () => { alignItems={"center"} direction={"row"} > - + theme.palette.primary2.contrastText }}> سامانه جامع راهداری diff --git a/src/components/layouts/dashboard/headerWithLogo/HaederTop/index.jsx b/src/components/layouts/dashboard/headerWithLogo/HaederTop/index.jsx index 6899881..2c0c3b6 100644 --- a/src/components/layouts/dashboard/headerWithLogo/HaederTop/index.jsx +++ b/src/components/layouts/dashboard/headerWithLogo/HaederTop/index.jsx @@ -1,10 +1,11 @@ import { Stack } from "@mui/material"; import Image from "next/image"; +import HeaderLogo from "@/assets/images/headerLogo.png"; const HeaderTop = () => { return ( - + ); };