Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

😮‍💨 Add CRT icon to video tile #6439

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/atlas/src/components/_video/VideoTile/VideoTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const VideoTile: FC<VideoTileProps> = memo(
type = 'video',
playlistUrl,
isPublisher,
hasCreatorToken,
}) => {
const [tileSize, setTileSize] = useState<'small' | 'medium'>()
const { ref: thumbnailRef } = useResizeObserver<HTMLAnchorElement>({
Expand Down Expand Up @@ -112,6 +113,7 @@ export const VideoTile: FC<VideoTileProps> = memo(
views={views}
createdAt={createdAt}
channelTitle={channelTitle}
hasCreatorToken={hasCreatorToken}
loading={loadingDetails}
loadingAvatar={loadingAvatar}
kebabMenuItems={kebabMenuItems}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export type VideoTileDetailsProps = {
views?: number | null
createdAt?: Date | null
channelTitle?: string | null
hasCreatorToken?: boolean
channelAvatarUrls?: string[] | null
channelHref?: string
onChannelAvatarClick?: () => void
Expand Down Expand Up @@ -70,6 +71,7 @@ export const VideoTileDetails: FC<VideoTileDetailsProps> = ({
type = 'playlist',
playlistUrl,
isPublisher,
hasCreatorToken,
}) => {
return (
<VideoDetailsContainer>
Expand Down Expand Up @@ -109,7 +111,7 @@ export const VideoTileDetails: FC<VideoTileDetailsProps> = ({
<SkeletonLoader height={16} width="100%" bottomSpace={8} />
) : (
<LinkWrapper to={channelHref}>
<ChannelTitle variant="t200" color="colorText" as="p">
<ChannelTitle hasToken={hasCreatorToken} variant="t200" color="colorText" as="p">
{channelTitle}
</ChannelTitle>
</LinkWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const VideoTileViewer: FC<VideoTileViewerProps> = ({
videoTitle={video?.title}
kebabMenuItems={contextMenuItems}
direction={direction}
hasCreatorToken={!!video?.channel.creatorToken?.token.id}
description={showDescription ? video?.description ?? undefined : undefined}
/>
)
Expand Down
Loading