Browse Source

hide block user button for self

pull/28/head
Brad Cathey 4 months ago
parent
commit
9c6598c627
  1. 4
      src/pages/Home/VideoList.tsx

4
src/pages/Home/VideoList.tsx

@ -119,6 +119,7 @@ export const VideoList = ({ videos }: VideoListProps) => {
</Tooltip> </Tooltip>
)} )}
{videoObj?.user !== username && (
<Tooltip title="Block user content" placement="top"> <Tooltip title="Block user content" placement="top">
<BlockIconContainer> <BlockIconContainer>
<BlockIcon <BlockIcon
@ -128,6 +129,7 @@ export const VideoList = ({ videos }: VideoListProps) => {
/> />
</BlockIconContainer> </BlockIconContainer>
</Tooltip> </Tooltip>
)}
</IconsBox> </IconsBox>
<VideoCard <VideoCard
sx={{ sx={{
@ -219,6 +221,7 @@ export const VideoList = ({ videos }: VideoListProps) => {
</Tooltip> </Tooltip>
)} )}
{videoObj?.user !== username && (
<Tooltip title="Block user content" placement="top"> <Tooltip title="Block user content" placement="top">
<BlockIconContainer> <BlockIconContainer>
<BlockIcon <BlockIcon
@ -228,6 +231,7 @@ export const VideoList = ({ videos }: VideoListProps) => {
/> />
</BlockIconContainer> </BlockIconContainer>
</Tooltip> </Tooltip>
)}
</IconsBox> </IconsBox>
<VideoCard <VideoCard
onClick={() => { onClick={() => {

Loading…
Cancel
Save