"expires in" for pending requests

This commit is contained in:
Paul Miller
2024-04-02 14:26:35 -05:00
parent 0c3dcf6863
commit e5674c94e4
2 changed files with 6 additions and 2 deletions

View File

@@ -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;
@@ -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"
@@ -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>