Skip to content

Commit

Permalink
feat: fix relevance layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Расул authored and Расул committed Nov 23, 2023
1 parent c85a1af commit b7c9e79
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions src/components/App/SideBar/Relevance/Episode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const Episode = ({

return (
<EpisodeWrapper className={className} isSelected={isSelected} onClick={onClick}>
{type && defaultViewTypes.includes(type) && (
{type && !defaultViewTypes.includes(type) ? (
<Flex direction="row">
{!isSelectedView && (
<Flex align="center" pr={16}>
Expand Down Expand Up @@ -120,25 +120,28 @@ export const Episode = ({
</Flex>
</Flex>
</Flex>
)}
{type === 'topic' && (
<TypeTopic>
<HashtagIcon />
<p>{subtitle}</p>
</TypeTopic>
)}
{['person', 'guest'].includes(type as string) && (
<TypePerson imageUrl={imageUrl} name={name || ''} title={showTitle || ''} />
)}
{type === 'tweet' && (
<TypeTweet
date={date}
imageUrl={profilePicture}
name={name || ''}
text={text || ''}
twitterHandle={twitterHandle}
verified={verified}
/>
) : (
<>
{type === 'topic' && (
<TypeTopic>
<HashtagIcon />
<p>{subtitle}</p>
</TypeTopic>
)}
{['person', 'guest'].includes(type as string) && (
<TypePerson imageUrl={imageUrl} name={name || ''} title={showTitle || ''} />
)}
{type === 'tweet' && (
<TypeTweet
date={date}
imageUrl={profilePicture}
name={name || ''}
text={text || ''}
twitterHandle={twitterHandle}
verified={verified}
/>
)}
</>
)}
</EpisodeWrapper>
)
Expand Down

0 comments on commit b7c9e79

Please sign in to comment.