Skip to content

Commit

Permalink
"expires in" for pending requests
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed Apr 2, 2024
1 parent 0c3dcf6 commit e5674c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"view_payment_details": "View payment details",
"pending": "Pending",
"error_safe_mode": "Mutiny is running in safe mode. Lightning is disabled.",
"self_hosted": "Self-hosted"
"self_hosted": "Self-hosted",
"expires": "Expires in {{time}}"
},
"home": {
"receive": "Receive your first sats",
Expand Down
5 changes: 4 additions & 1 deletion src/components/GenericItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Check, Clock4, EyeOff, Globe, X, Zap } from "lucide-solid";
import { JSX, Match, Show, Switch } from "solid-js";

import { LabelCircle, LoadingSpinner } from "~/components";
import { useI18n } from "~/i18n/context";

export function GenericItem(props: {
primaryAvatarUrl?: string;
Expand All @@ -27,6 +28,8 @@ export function GenericItem(props: {
rejectAction?: () => void;
shouldSpinny?: boolean;
}) {
const i18n = useI18n();

return (
<div
class="grid w-full py-3 first-of-type:pt-0"
Expand Down Expand Up @@ -109,7 +112,7 @@ export function GenericItem(props: {
<div class="flex w-full items-center gap-1 text-m-grey-400">
<Clock4 class="w-3" />
<span class="text-xs text-m-grey-400">
{props.due}
{i18n.t("common.expires", { time: props.due })}
</span>
</div>
</Show>
Expand Down

0 comments on commit e5674c9

Please sign in to comment.