[READ-ONLY] Mirror of https://github.com/flo-bit/youtube-party-dj. democratic youtube player, everyone can vote and add songs, uni project, made with uix
0

Configure Feed

Select the types of activity you want to include in your feed.

renderLikeButton updated

+4 -4
+4 -4
common/components/QueueItem.tsx
··· 216 216 hookElement.classList.remove("fly-in-animation"); 217 217 await sleep(1000); 218 218 toggleLike(code, updatedItem.id); 219 - updateLikeButton(item, code); 219 + updateLikeButton(updatedItem, code); 220 220 } 221 221 } 222 222 ··· 258 258 if (isLiked) 259 259 return ( 260 260 <div class="text-accent-500 fill-accent-500 stroke-accent-500 flex"> 261 - <div class="font-semibold">{item.likes.size}</div> 261 + <div class="font-semibold">{updatedItem.likes.size}</div> 262 262 <svg 263 263 xmlns="http://www.w3.org/2000/svg" 264 264 viewBox="0 0 24 24" ··· 272 272 else 273 273 return ( 274 274 <div class="flex"> 275 - <div class="font-semibold">{item.likes.size}</div> 275 + <div class="font-semibold">{updatedItem.likes.size}</div> 276 276 <svg 277 277 xmlns="http://www.w3.org/2000/svg" 278 278 fill="none" ··· 300 300 <img src={item.thumbnail} class="h-20 w-32 object-cover" alt=" " /> 301 301 <div class="flex flex-1 flex-grow justify-between"> 302 302 <div class="pl-4 justify-center flex flex-col h-full"> 303 - <p class="line-clamp-2 font-bold text-md leading-6">{item.title + "+" + item.likes.has(userId)} </p> 303 + <p class="line-clamp-2 font-bold text-md leading-6">{item.title} </p> 304 304 <p class="text-xs">{item.duration} minutes</p> 305 305 </div> 306 306 <div class="queueicon2 flex h-full justify-center items-center stroke-black dark:stroke-white px-2">