Skip to content

Commit dcae870

Browse files
committedOct 28, 2024
Adjust Map of Pi default placeholder image source.
1 parent 032a9b0 commit dcae870

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed
 

‎.env.development

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ NODE_ENV=development
77
NEXT_PUBLIC_API_URL=http://localhost:8001/api/v1
88
NEXT_PUBLIC_PI_SDK_URL=https://sdk.minepi.com/pi-sdk.js
99

10-
NEXT_PUBLIC_SENTRY_DSN="ADD YOUR SENTRY DSN"
11-
NEXT_PUBLIC_IMAGE_PLACEHOLDER_URL="ADD YOUR IMAGE PLACEHOLDER URL"
10+
NEXT_PUBLIC_SENTRY_DSN="ADD YOUR SENTRY DSN"

‎src/app/[locale]/seller/sale-items/[id]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default function BuyFromSellerForm({ params }: { params: { id: string } }
114114
<div className="rounded-[50%] w-[65px] h-[65px] relative">
115115
<Image
116116
className="rounded-[50%]"
117-
src={sellerShopInfo.image && sellerShopInfo.image.trim() !== "" ? sellerShopInfo.image : process.env.NEXT_PUBLIC_IMAGE_PLACEHOLDER_URL || '/images/shared/upload.png'}
117+
src={sellerShopInfo.image && sellerShopInfo.image.trim() !== "" ? sellerShopInfo.image : 'images/logo.svg' }
118118
alt="seller logo"
119119
fill
120120
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"

‎src/components/shared/map/MapMarkerPopup.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const MapMarkerPopup = ({ seller }: { seller: any }) => {
1313
const imageUrl =
1414
seller.image && seller.image.trim() !== ''
1515
? seller.image
16-
: process.env.NEXT_PUBLIC_IMAGE_PLACEHOLDER_URL || '/images/shared/upload.png';
16+
: '/images/logo.svg';
1717

1818
const translateSellerCategory = (category: string): string => {
1919
switch (category) {

0 commit comments

Comments
 (0)