1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-09 10:46:52 +02:00

chore: placeholder image

This commit is contained in:
Arik Chakma
2023-05-04 01:30:03 +06:00
committed by Kamran Ahmed
parent 47d5716238
commit 4d3ebb0ac6

View File

@@ -121,9 +121,9 @@ export default function UploadProfilePicture({
<img <img
className="absolute inset-0 h-full w-full object-cover" className="absolute inset-0 h-full w-full object-cover"
src={ src={
file?.preview ?? file?.preview ||
user.image ?? user.image ||
'https://d22sqt16nof9dt.cloudfront.net/1683071715132-1x3.jpeg' 'https://d22sqt16nof9dt.cloudfront.net/placeholder.png'
} }
alt={file?.name ?? 'Profile picture'} alt={file?.name ?? 'Profile picture'}
loading="lazy" loading="lazy"