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 )} +