Ignore:
Timestamp:
02/09/26 20:44:24 (5 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
27660af
Parents:
c684a6d
Message:

add client side form for publishing new music with mock data and api calls

File:
1 edited

Legend:

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

    rc684a6d r8dd3e22  
    2222                        setUser(undefined);
    2323                        setIsDropdownOpen(false);
    24                         toast.success("Logout successful!");
     24                        window.location.href = "/";
     25                        // toast.success("Logout successful!");
    2526                } catch (error) {
    2627                        console.error("Logout failed:", error);
     
    8182                                {!isAuthLoading && (
    8283                                        <div className="flex items-center space-x-3">
     84                                                {user?.isArtist && (
     85                                                        <Link
     86                                                                to="/my-songs"
     87                                                                className="text-white hover:text-[#1db954] px-4 py-2 text-sm font-medium transition-colors"
     88                                                        >
     89                                                                My Songs
     90                                                        </Link>
     91                                                )}
    8392                                                {user ? (
    8493                                                        <div className="relative" ref={dropdownRef}>
Note: See TracChangeset for help on using the changeset viewer.