File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,7 @@ export const PerfilUsuario = () => {
6969 style = { { cursor : "pointer" } }
7070 >
7171 < img
72- src = { pet . animal_type === "perro" ? "https://images.emojiterra.com/google/noto-emoji/unicode-16.0/color/1024px/1f436.png" :
73- pet . animal_type === "gato" ? "https://cdn-icons-png.flaticon.com/512/6988/6988878.png" :
74- pet . animal_type === "exotico" ? "https://cdn-icons-png.flaticon.com/512/802/802338.png" :
75- "https://via.placeholder.com/60" }
72+ src = { pet . url || "https://via.placeholder.com/60" }
7673 alt = { pet . name }
7774 className = "rounded-circle border border-secondary"
7875 style = { { width : 60 , height : 60 , objectFit : "cover" } }
Original file line number Diff line number Diff line change @@ -95,15 +95,10 @@ export const VistaMascota = () => {
9595 < div className = "col-md-6" >
9696 < div className = "card" >
9797 < img
98- src = {
99- petDetails . animal_type === "perro" ? "https://images.emojiterra.com/google/noto-emoji/unicode-16.0/color/1024px/1f436.png" :
100- petDetails . animal_type === "gato" ? "https://cdn-icons-png.flaticon.com/512/6988/6988878.png" :
101- petDetails . animal_type === "exotico" ? "https://cdn-icons-png.flaticon.com/512/802/802338.png" :
102- "https://via.placeholder.com/60"
103- }
104- alt = { petDetails . name }
105- className = "rounded-circle border border-secondary"
106- style = { { width : "140px" , height : "140px" , objectFit : "cover" } }
98+ src = { petDetails . url || '/default-image.jpg' }
99+ alt = { petDetails . name }
100+ className = "card-img-top"
101+ style = { { width : '100%' , height : 'auto' } }
107102 />
108103 < div className = "card-body" >
109104 < h5 className = "card-title" > { petDetails . name } </ h5 >
You can’t perform that action at this time.
0 commit comments