Ignore:
Timestamp:
01/27/26 12:55:23 (6 months ago)
Author:
Dimitar Arsov <dimitararsov04@…>
Branches:
main
Children:
4e5cf92
Parents:
c6e1892
Message:

show follow/following button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/components/userProfile/ArtistView.tsx

    rc6e1892 r0f71490  
    11import { useNavigate } from "react-router-dom";
    22import { Music, Disc3, Mic2 } from "lucide-react";
    3 
    4 interface ArtistContributionDTO {
    5   musicalEntityId: number;
    6   title: string;
    7   role: string;
    8   entityType: string;
    9 }
     3import type { ArtistContributionDTO } from "../../types";
    104
    115interface ArtistViewProps {
     
    1610  const navigate = useNavigate();
    1711
    18   const albums = contributions.filter((c) => c.entityType === "Album");
    19   const songs = contributions.filter((c) => c.entityType === "Song");
     12  const albums = contributions.filter((c) => c.entityType === "ALBUM");
     13  const songs = contributions.filter((c) => c.entityType === "SONG");
    2014
    2115  const getRoleColor = (role: string) => {
     
    3125  return (
    3226    <div className="mt-8">
    33       {/* Albums Section */}
    3427      {albums.length > 0 && (
    3528        <div className="mb-12">
     
    9184                  </h3>
    9285                  <div className="flex items-center gap-2 mt-1">
    93                     <Mic2 className="w-4 h-4 text-gray-400" />
     86                    {song.genre}
    9487                  </div>
    9588                </div>
Note: See TracChangeset for help on using the changeset viewer.