Ignore:
Timestamp:
02/18/26 22:33:00 (5 months ago)
Author:
Dimitar Arsov <dimitararsov04@…>
Branches:
main
Children:
ed8f998
Parents:
d1ee039
Message:

hide actions from unauthenticated users

File:
1 edited

Legend:

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

    rd1ee039 r615dcee  
    407407              )}
    408408            </h2>
    409             <button
    410               onClick={() => setShowReviewModal(true)}
    411               className="flex items-center gap-2 bg-[#1db954] hover:bg-[#1ed760] text-black text-sm font-semibold px-4 py-2 rounded-full transition-colors"
    412             >
    413               <svg
    414                 className="w-4 h-4"
    415                 fill="none"
    416                 stroke="currentColor"
    417                 viewBox="0 0 24 24"
     409            {user != null && (
     410              <button
     411                onClick={() => setShowReviewModal(true)}
     412                className="flex items-center gap-2 bg-[#1db954] hover:bg-[#1ed760] text-black text-sm font-semibold px-4 py-2 rounded-full transition-colors"
    418413              >
    419                 <path
    420                   strokeLinecap="round"
    421                   strokeLinejoin="round"
    422                   strokeWidth={2}
    423                   d="M12 4v16m8-8H4"
    424                 />
    425               </svg>
    426               Add Review
    427             </button>
     414                <svg
     415                  className="w-4 h-4"
     416                  fill="none"
     417                  stroke="currentColor"
     418                  viewBox="0 0 24 24"
     419                >
     420                  <path
     421                    strokeLinecap="round"
     422                    strokeLinejoin="round"
     423                    strokeWidth={2}
     424                    d="M12 4v16m8-8H4"
     425                  />
     426                </svg>
     427                Add Review
     428              </button>
     429            )}
    428430          </div>
    429431
Note: See TracChangeset for help on using the changeset viewer.