Changeset f5bc95e for frontend/src/components/userProfile
- Timestamp:
- 02/12/26 22:27:24 (5 months ago)
- Branches:
- main
- Children:
- 85512ff
- Parents:
- d85e8e3
- Location:
- frontend/src/components/userProfile
- Files:
-
- 2 edited
-
ArtistView.tsx (modified) (2 diffs)
-
ListenerView.tsx (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/components/userProfile/ArtistView.tsx
rd85e8e3 rf5bc95e 3 3 import { useNavigate } from "react-router-dom"; 4 4 import { toast } from "react-toastify"; 5 import axiosInstance from "../../api/axiosInstance";5 import axiosInstance, { baseURL } from "../../api/axiosInstance"; 6 6 import type { ArtistContribution } from "../../utils/types"; 7 7 import SongItem from "../SongItem"; … … 65 65 <div className="relative aspect-square rounded-lg mb-3 overflow-hidden shadow-md group-hover:shadow-xl transition-all duration-300 bg-[#181818]"> 66 66 <img 67 src={album.cover || "/favicon.png"} 67 src={ 68 album.cover ? `${baseURL}/${album.cover}` : "/favicon.png" 69 } 68 70 alt={album.title} 69 71 className="w-full h-full object-cover" -
frontend/src/components/userProfile/ListenerView.tsx
rd85e8e3 rf5bc95e 3 3 import { useNavigate } from "react-router-dom"; 4 4 import { toast } from "react-toastify"; 5 import axiosInstance from "../../api/axiosInstance";5 import axiosInstance, { baseURL } from "../../api/axiosInstance"; 6 6 import type { MusicalEntity, Playlist } from "../../utils/types"; 7 7 import SongItem from "../SongItem"; … … 94 94 <div className="relative aspect-square rounded-lg overflow-hidden bg-[#181818] mb-3 shadow-md group-hover:shadow-xl transition-all"> 95 95 <img 96 src={playlist.cover || "/favicon.png"} 96 src={ 97 playlist.cover 98 ? `${baseURL}/${playlist.cover}` 99 : "/favicon.png" 100 } 97 101 alt={playlist.name} 98 102 className="w-full h-full object-cover" … … 147 151 <div className="relative aspect-square rounded-lg overflow-hidden bg-[#181818] mb-3 shadow-md group-hover:shadow-xl transition-all"> 148 152 <img 149 src={playlist.cover || "/favicon.png"} 153 src={ 154 playlist.cover 155 ? `${baseURL}/${playlist.cover}` 156 : "/favicon.png" 157 } 150 158 alt={playlist.name} 151 159 className="w-full h-full object-cover" … … 194 202 id: song.id, 195 203 title: song.title, 196 cover: song.cover, 204 cover: song.cover 205 ? `${baseURL}/${song.cover}` 206 : "/favicon.png", 197 207 genre: song.genre, 198 208 link: (song as any).link, … … 227 237 <div className="relative aspect-square rounded-lg overflow-hidden bg-[#181818] mb-3 shadow-md group-hover:shadow-xl transition-all"> 228 238 <img 229 src={album.cover || "/favicon.png"} 239 src={ 240 album.cover ? `${baseURL}/${album.cover}` : "/favicon.png" 241 } 230 242 alt={album.title} 231 243 className="w-full h-full object-cover"
Note:
See TracChangeset
for help on using the changeset viewer.
