@@ -11,40 +11,40 @@ interface ArtistScheduleBlockProps {
1111 compact ?: boolean ;
1212}
1313
14- export const ArtistScheduleBlock = ( {
14+ export function ArtistScheduleBlock ( {
1515 artist,
1616 userVote,
1717 onVote,
1818 compact = false ,
19- } : ArtistScheduleBlockProps ) => {
20- const getVoteCount = ( voteType : number ) => {
19+ } : ArtistScheduleBlockProps ) {
20+ function getVoteCount ( voteType : number ) {
2121 return ( artist . votes || [ ] ) . filter ( ( vote ) => vote . vote_type === voteType )
2222 . length ;
23- } ;
23+ }
2424
25- const handleVote = ( voteType : number ) => {
25+ function handleVote ( voteType : number ) {
2626 if ( onVote ) {
2727 onVote ( artist . id , voteType ) ;
2828 }
29- } ;
29+ }
3030
3131 return (
3232 < Card className = "bg-white/10 backdrop-blur-md border-purple-400/30 hover:border-purple-400/50 transition-colors" >
3333 < CardContent className = { compact ? "p-3" : "p-4" } >
3434 < div className = "mb-2" >
3535 < Link
3636 to = { `/artist/${ artist . id } ` }
37- className = "text-white font-semibold hover:text-purple-300 transition-colors block"
37+ className = "text-white font-semibold hover:text-purple-300 transition-colors block text-sm "
3838 >
3939 { artist . name }
4040 </ Link >
4141
4242 { /* Show artists in this set */ }
43- { artist . artists && artist . artists . length > 0 && (
43+ { /* { artist.artists && artist.artists.length > 0 && (
4444 <div className="text-purple-300 text-sm mt-1">
4545 {artist.artists.map((a) => a.name).join(", ")}
4646 </div>
47- ) }
47+ )} */ }
4848 </ div >
4949
5050 < div className = "space-y-1 text-sm text-purple-200" >
@@ -111,4 +111,4 @@ export const ArtistScheduleBlock = ({
111111 </ CardContent >
112112 </ Card >
113113 ) ;
114- } ;
114+ }
0 commit comments