diff --git a/src/components/nostr/kinds/PollDetailRenderer.tsx b/src/components/nostr/kinds/PollDetailRenderer.tsx index cdf3f79..fab51bf 100644 --- a/src/components/nostr/kinds/PollDetailRenderer.tsx +++ b/src/components/nostr/kinds/PollDetailRenderer.tsx @@ -1,6 +1,7 @@ import { useMemo } from "react"; import type { NostrEvent } from "@/types/nostr"; import { + ListCheck, ListChecks, Clock, Users, @@ -13,6 +14,7 @@ import { useGrimoire } from "@/core/state"; import { Progress } from "@/components/ui/progress"; import { UserName } from "../UserName"; import { Skeleton } from "@/components/ui/skeleton"; +import { RelayLink } from "../RelayLink"; import { AGGREGATOR_RELAYS } from "@/services/loaders"; import { getPollQuestion, @@ -102,7 +104,11 @@ export function PollDetailRenderer({ event }: { event: NostrEvent }) {
{/* Poll Type Badge */}
- + {pollType === "multiplechoice" ? ( + + ) : ( + + )} {pollType === "multiplechoice" ? "Multiple Choice" @@ -228,16 +234,16 @@ export function PollDetailRenderer({ event }: { event: NostrEvent }) { {pollRelays.length > 0 && (

- Vote on these relays + Relays

-
+
{pollRelays.map((relay) => ( - - {relay.replace(/^wss?:\/\//, "")} - + url={relay} + showInboxOutbox={false} + className="text-sm" + /> ))}
diff --git a/src/components/nostr/kinds/PollRenderer.tsx b/src/components/nostr/kinds/PollRenderer.tsx index 48c12f7..730050e 100644 --- a/src/components/nostr/kinds/PollRenderer.tsx +++ b/src/components/nostr/kinds/PollRenderer.tsx @@ -3,7 +3,13 @@ import { BaseEventContainer, ClickableEventTitle, } from "./BaseEventRenderer"; -import { ListChecks, Clock, CheckCircle2, CircleDot } from "lucide-react"; +import { + ListCheck, + ListChecks, + Clock, + CheckCircle2, + CircleDot, +} from "lucide-react"; import { formatTimestamp } from "@/hooks/useLocale"; import { useGrimoire } from "@/core/state"; import { @@ -36,7 +42,11 @@ export function PollRenderer({ event }: BaseEventProps) {
{/* Poll Header */}
- + {pollType === "multiplechoice" ? ( + + ) : ( + + )} {pollType === "multiplechoice" ? "Multiple Choice"