diff --git a/app/(browse)/[username]/_components/actions.tsx b/app/(browse)/[username]/_components/actions.tsx index 74c864a..42452b1 100644 --- a/app/(browse)/[username]/_components/actions.tsx +++ b/app/(browse)/[username]/_components/actions.tsx @@ -3,7 +3,6 @@ import { toast } from "sonner"; import { useTransition } from "react"; -// import { onBlock, onUnblock } from "@/actions/block"; import { onFollow, onUnfollow } from "@/actions/follow"; import { Button } from "@/components/ui/button"; @@ -43,34 +42,6 @@ const Actions = ({ isFollowing, userId }: ActionsProps) => { } }; - // const handleUnblock = () => { - // startTransition(() => { - // onUnblock(userId) - // .then((data) => - // toast.success(`Unblocked the user ${data.blocked.username}`) - // ) - // .catch(() => toast.error("Something went wrong")); - // }); - // }; - - // const handleBlock = () => { - // startTransition(() => { - // onBlock(userId) - // .then((data) => - // toast.success(`Blocked the user ${data?.blocked.username}`) - // ) - // .catch(() => toast.error("Something went wrong")); - // }); - // }; - - // const onBlockUnblock = () => { - // if (isBlocked) { - // handleUnblock(); - // } else { - // handleBlock(); - // } - // }; - return ( <> - {/* */} > ); }; diff --git a/components/stream-player/actions.tsx b/components/stream-player/actions.tsx index 537094f..b02a827 100644 --- a/components/stream-player/actions.tsx +++ b/components/stream-player/actions.tsx @@ -56,8 +56,7 @@ const Actions = ({ hostIdentity, isFollowing, isHost }: ActionsProps) => { } }; - return ( - //TODO: {!isHost ? ( the button ) : null} + return !isHost ? ( - ); + ) : null; }; export default Actions; diff --git a/components/stream-player/live-video.tsx b/components/stream-player/live-video.tsx index 4f6679c..555c54c 100644 --- a/components/stream-player/live-video.tsx +++ b/components/stream-player/live-video.tsx @@ -76,7 +76,6 @@ const LiveVideo = ({ participant }: LiveVideoProps) => { />