mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3007 from omnivore-app/feat/web-add-flair-titles
Add titles to the flair icons
This commit is contained in:
commit
747038ec0d
1 changed files with 25 additions and 5 deletions
|
|
@ -101,16 +101,36 @@ export const FLAIR_ICON_NAMES = [
|
|||
const flairIconForLabel = (label: Label): JSX.Element | undefined => {
|
||||
switch (label.name.toLocaleLowerCase()) {
|
||||
case 'favorite':
|
||||
return <FavoriteFlairIcon />
|
||||
return (
|
||||
<SpanBox title="Favorite">
|
||||
<FavoriteFlairIcon />
|
||||
</SpanBox>
|
||||
)
|
||||
case 'pinned':
|
||||
return <PinnedFlairIcon />
|
||||
return (
|
||||
<SpanBox title="Pinned">
|
||||
<PinnedFlairIcon />
|
||||
</SpanBox>
|
||||
)
|
||||
case 'recommended':
|
||||
return <RecommendedFlairIcon />
|
||||
return (
|
||||
<SpanBox title="Recommended">
|
||||
<RecommendedFlairIcon />
|
||||
</SpanBox>
|
||||
)
|
||||
case 'newsletter':
|
||||
return <NewsletterFlairIcon />
|
||||
return (
|
||||
<SpanBox title="Newsletter">
|
||||
<NewsletterFlairIcon />
|
||||
</SpanBox>
|
||||
)
|
||||
case 'rss':
|
||||
case 'feed':
|
||||
return <FeedFlairIcon />
|
||||
return (
|
||||
<SpanBox title="Feed">
|
||||
<FeedFlairIcon />
|
||||
</SpanBox>
|
||||
)
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue