alpha
Login
or
Join now
flo-bit.dev
/
youtube-party-dj
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[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
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
renderLikeButton updated
author
yunusbeyaz
date
2 years ago
(Jul 9, 2024, 1:58 PM +0200)
commit
0048b428
0048b428d0e636bd4e172fc4aa2bdb9b2fccd122
parent
bb5fcdde
bb5fcdde5cc84891845941ef2a5e5a49ab6c058c
+4
-4
1 changed file
Expand all
Collapse all
Unified
Split
common
components
QueueItem.tsx
+4
-4
common/components/QueueItem.tsx
View file
Reviewed
···
216
216
hookElement.classList.remove("fly-in-animation");
217
217
await sleep(1000);
218
218
toggleLike(code, updatedItem.id);
219
219
-
updateLikeButton(item, code);
219
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
261
-
<div class="font-semibold">{item.likes.size}</div>
261
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
275
-
<div class="font-semibold">{item.likes.size}</div>
275
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
303
-
<p class="line-clamp-2 font-bold text-md leading-6">{item.title + "+" + item.likes.has(userId)} </p>
303
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">