added no media selected text

This commit is contained in:
thekingofjibs 2020-03-18 13:03:25 +00:00 committed by Marks Polakovs
parent 9c0cde9d6b
commit d7888970d8

View file

@ -81,6 +81,7 @@ function Player({ id }: { id: number }) {
return ( return (
<div> <div>
{playerState.loadedItem == null && (<div>No Media Selected</div>)}
{playerState.loadedItem !== null && (<div>{playerState.loadedItem.title}</div>)} {playerState.loadedItem !== null && (<div>{playerState.loadedItem.title}</div>)}
{playerState.loading && <b>LOADING</b>} {playerState.loading && <b>LOADING</b>}
<button <button