mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add titles to the flair icons
This commit is contained in:
parent
989dbc5977
commit
b57fd742b3
2 changed files with 26 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable functional/no-class */
|
||||
/* eslint-disable functional/no-this-expression */
|
||||
import { SpanBox } from '../LayoutPrimitives'
|
||||
import { IconProps } from './IconProps'
|
||||
|
||||
import React from 'react'
|
||||
|
|
|
|||
|
|
@ -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