Changeset d85e8e3 for frontend


Ignore:
Timestamp:
02/12/26 22:18:11 (5 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
f5bc95e
Parents:
db5fb23
Message:

fix bug in song repository and add sequence generator for musical entities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/pages/MySongs.tsx

    rdb5fb23 rd85e8e3  
    11import { useEffect, useState } from "react";
    22import { Link, useNavigate } from "react-router-dom";
    3 import axiosInstance from "../api/axiosInstance";
     3import axiosInstance, { baseURL } from "../api/axiosInstance";
    44import { useAuth } from "../context/authContext";
    55import type { CatalogItem } from "../utils/types";
     
    155155                                                                                </span>
    156156                                                                                <img
    157                                                                                         src={song.cover || "/favicon.png"}
     157                                                                                        src={
     158                                                                                                song.cover ? `${baseURL}/${song.cover}` : "/favicon.png"
     159                                                                                        }
    158160                                                                                        alt={song.title}
    159161                                                                                        className="w-12 h-12 rounded object-cover"
     
    215217                                                                                <div className="relative w-full pt-[100%] rounded-lg overflow-hidden mb-4 bg-[#282828]">
    216218                                                                                        <img
    217                                                                                                 src={album.cover || "/favicon.png"}
     219                                                                                                src={
     220                                                                                                        album.cover
     221                                                                                                                ? `${baseURL}/${album.cover}`
     222                                                                                                                : "/favicon.png"
     223                                                                                                }
    218224                                                                                                alt={album.title}
    219225                                                                                                className="absolute inset-0 w-full h-full object-cover"
Note: See TracChangeset for help on using the changeset viewer.