Changeset 0f71490 for frontend/src/components/userProfile/ArtistView.tsx
- Timestamp:
- 01/27/26 12:55:23 (6 months ago)
- Branches:
- main
- Children:
- 4e5cf92
- Parents:
- c6e1892
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/components/userProfile/ArtistView.tsx
rc6e1892 r0f71490 1 1 import { useNavigate } from "react-router-dom"; 2 2 import { Music, Disc3, Mic2 } from "lucide-react"; 3 4 interface ArtistContributionDTO { 5 musicalEntityId: number; 6 title: string; 7 role: string; 8 entityType: string; 9 } 3 import type { ArtistContributionDTO } from "../../types"; 10 4 11 5 interface ArtistViewProps { … … 16 10 const navigate = useNavigate(); 17 11 18 const albums = contributions.filter((c) => c.entityType === "A lbum");19 const songs = contributions.filter((c) => c.entityType === "S ong");12 const albums = contributions.filter((c) => c.entityType === "ALBUM"); 13 const songs = contributions.filter((c) => c.entityType === "SONG"); 20 14 21 15 const getRoleColor = (role: string) => { … … 31 25 return ( 32 26 <div className="mt-8"> 33 {/* Albums Section */}34 27 {albums.length > 0 && ( 35 28 <div className="mb-12"> … … 91 84 </h3> 92 85 <div className="flex items-center gap-2 mt-1"> 93 <Mic2 className="w-4 h-4 text-gray-400" />86 {song.genre} 94 87 </div> 95 88 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
