feat: show error message in feed error
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
468d4f39e0
commit
19ea8a606a
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="#fff" fill-opacity=".01" d="M24 0v24H0V0z"/><path stroke="#10161F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 7v3.757a3 3 0 0 0 .879 2.122L15 15m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0"/></svg>
|
||||
|
After Width: | Height: | Size: 302 B |
|
|
@ -168,14 +168,23 @@ const FeedItemImpl = ({
|
|||
</TooltipTrigger>
|
||||
<TooltipPortal>
|
||||
<TooltipContent>
|
||||
Error since
|
||||
{" "}
|
||||
{dayjs
|
||||
.duration(
|
||||
dayjs(feed.errorAt).diff(dayjs(), "minute"),
|
||||
"minute",
|
||||
)
|
||||
.humanize(true)}
|
||||
<div className="flex items-center gap-1">
|
||||
<i className="i-mgc-time-cute-re" />
|
||||
Error since
|
||||
{" "}
|
||||
{dayjs
|
||||
.duration(
|
||||
dayjs(feed.errorAt).diff(dayjs(), "minute"),
|
||||
"minute",
|
||||
)
|
||||
.humanize(true)}
|
||||
</div>
|
||||
{!!feed.errorMessage && (
|
||||
<div className="flex items-center gap-1">
|
||||
<i className="i-mgc-bug-cute-re" />
|
||||
{feed.errorMessage}
|
||||
</div>
|
||||
)}
|
||||
</TooltipContent>
|
||||
</TooltipPortal>
|
||||
</Tooltip>
|
||||
|
|
|
|||
Loading…
Reference in New Issue