Skip to content

Commit

Permalink
ci: review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicpotato137 committed Nov 15, 2023
1 parent e88c7d9 commit 0d3ce68
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/App/SideBar/Relevance/Episode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export const Episode = ({
const selectedTimestamp = useDataStore((s) => s.selectedTimestamp)
const isSelected = !!(selectedTimestamp && selectedTimestamp.id === id)

const description = type === 'show' ? showTitle : episodeTitle;
const subtitle = type === 'show' ? '' : showTitle;

return (
<EpisodeWrapper className={className} isSelected={isSelected} onClick={onClick}>
{type !== 'tweet' && type !== 'person' && type !== 'guest' && (
Expand All @@ -103,10 +106,10 @@ export const Episode = ({
) : null}
</Flex>

<Description data-testid="episode-description">{episodeTitle}</Description>
<Description data-testid="episode-description">{description}</Description>
<Flex align="center" direction="row" justify="flex-start">
{Boolean(date) && <Date>{moment.unix(date).fromNow()}</Date>}
{Boolean(showTitle) && <Title>{showTitle}</Title>}
{Boolean(subtitle) && <Title>{subtitle}</Title>}
{!isSelectedView && boostCount > 0 && (
<Flex style={{ marginLeft: 'auto' }}>
<BoostAmt amt={boostCount} />
Expand Down

0 comments on commit 0d3ce68

Please sign in to comment.