diff --git a/next-app/components/StreamView/Queue.tsx b/next-app/components/StreamView/Queue.tsx index ddb8b41..d7a74da 100644 --- a/next-app/components/StreamView/Queue.tsx +++ b/next-app/components/StreamView/Queue.tsx @@ -13,6 +13,7 @@ import { DialogHeader, DialogTitle, } from "@/components/ui/dialog"; +import { useAutoAnimate } from "@formkit/auto-animate/react"; type Props = { queue: Video[]; @@ -25,6 +26,7 @@ type Props = { export default function Queue({ queue, isCreator, creatorId, userId,spaceId }: Props) { const { sendMessage } = useSocket(); const [isEmptyQueueDialogOpen, setIsEmptyQueueDialogOpen] = useState(false); + const [parent] = useAutoAnimate(); function handleVote(id: string, isUpvote: boolean) { sendMessage("cast-vote", { @@ -91,6 +93,7 @@ export default function Queue({ queue, isCreator, creatorId, userId,spaceId }: P )} +
{queue.map((video) => ( @@ -131,6 +134,7 @@ export default function Queue({ queue, isCreator, creatorId, userId,spaceId }: P ))} +
=10.10.0'} @@ -2296,6 +2302,8 @@ snapshots: '@floating-ui/utils@0.2.8': {} + '@formkit/auto-animate@0.8.2': {} + '@humanwhocodes/config-array@0.11.14': dependencies: '@humanwhocodes/object-schema': 2.0.3 diff --git a/ws/package.json b/ws/package.json index c81ef16..ebedd99 100644 --- a/ws/package.json +++ b/ws/package.json @@ -7,8 +7,7 @@ "preinstall": "npx only-allow pnpm", "dev": "nodemon src/app.ts", "start": "node dist/app.js", - "build": "prisma generate && npx tsc -b", - "postinstall": "prisma generate" + "build": "prisma generate && npx tsc -b" }, "keywords": [], "author": "",