mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
failed timestamp text is in red color
This commit is contained in:
parent
f8a6887d09
commit
5dfbd7f238
1 changed files with 13 additions and 11 deletions
|
|
@ -230,17 +230,19 @@ export default function Rss(): JSX.Element {
|
|||
>
|
||||
<SpanBox>{`URL: ${subscription.url}`}</SpanBox>
|
||||
{/* show failed timestamp instead of last refreshed timestamp if the feed failed to refresh */}
|
||||
<SpanBox>{`${
|
||||
subscription.failedAt
|
||||
? `Failed to refresh: ${formattedDateTime(
|
||||
subscription.failedAt
|
||||
)}`
|
||||
: `Last refreshed: ${
|
||||
subscription.lastFetchedAt
|
||||
? formattedDateTime(subscription.lastFetchedAt)
|
||||
: 'Never'
|
||||
}`
|
||||
}`}</SpanBox>
|
||||
{subscription.failedAt ? (
|
||||
<SpanBox
|
||||
css={{ color: 'red' }}
|
||||
>{`Failed to refresh: ${formattedDateTime(
|
||||
subscription.failedAt
|
||||
)}`}</SpanBox>
|
||||
) : (
|
||||
<SpanBox>{`Last refreshed: ${
|
||||
subscription.lastFetchedAt
|
||||
? formattedDateTime(subscription.lastFetchedAt)
|
||||
: 'Never'
|
||||
}`}</SpanBox>
|
||||
)}
|
||||
<SpanBox>
|
||||
{subscription.mostRecentItemDate &&
|
||||
`Most recent item: ${formattedDateTime(
|
||||
|
|
|
|||
Loading…
Reference in a new issue