diff --git a/app/build/dao/cast-vote.tsx b/app/build/dao/cast-vote.tsx index e116156..7060b0e 100644 --- a/app/build/dao/cast-vote.tsx +++ b/app/build/dao/cast-vote.tsx @@ -113,7 +113,7 @@ function CastBody({ }) { if (!connected) { return ( - ); diff --git a/app/build/dao/page.tsx b/app/build/dao/page.tsx index adce457..61689c2 100644 --- a/app/build/dao/page.tsx +++ b/app/build/dao/page.tsx @@ -1,6 +1,7 @@ "use client"; import { useCallback, useEffect, useState } from "react"; +import Image from "next/image"; import { Loader2, RefreshCw, ChevronDown, ExternalLink } from "lucide-react"; import { ConsolePanel } from "@/components/build/console/panel"; import { CodeTabs } from "@/components/build/console/code-tabs"; @@ -13,6 +14,11 @@ import { VotingPowerCard } from "./voting-power-card"; import { QuorumLine } from "./quorum-line"; import { CastVote } from "./cast-vote"; +const CHAIN_META: Record = { + ethereum: { label: "Ethereum", icon: "/logos/eth.svg" }, + lightchain: { label: "LightChain", icon: "/logos/lcai.png" }, +}; + interface DecodedAction { target: string; valueLcai: number; @@ -145,7 +151,7 @@ export default function DaoPanel() { subtitle="Read live LCAIGovernor proposals (OpenZeppelin Governor v5) and their on-chain vote tallies. Casting votes, proposing, queueing, and executing sign with your wallet - shown in the snippet." actions={
-
+
{(["ethereum", "lightchain"] as DaoChain[]).map((c) => ( ))}
@@ -280,7 +290,7 @@ export default function DaoPanel() { type="button" onClick={() => setLimit((l) => l + 5)} disabled={loading} - className="w-full rounded-xl border border-bdr-soft py-2.5 text-sm font-medium text-content-soft transition-colors hover:text-content-primary disabled:opacity-50" + className="w-full rounded-xl border border-bdr-soft py-2.5 text-sm font-medium text-content-soft transition-colors hover:border-primary/40 hover:text-content-primary disabled:opacity-50" > {loading ? "Loading..." : `Load more (${data.total - data.proposals.length} more)`} diff --git a/app/build/dao/voting-power-card.tsx b/app/build/dao/voting-power-card.tsx index 37467f4..a7ce3b7 100644 --- a/app/build/dao/voting-power-card.tsx +++ b/app/build/dao/voting-power-card.tsx @@ -78,7 +78,7 @@ export function VotingPowerCard({ chain }: { chain: DaoChain }) { Connect your wallet to see your voting power - Connect + Connect ); } @@ -159,7 +159,7 @@ function DelegationRow({ type="button" onClick={onDelegate} disabled={working} - className="inline-flex items-center gap-1.5 rounded-lg bg-primary px-3 py-1.5 text-xs font-semibold text-white transition-opacity hover:opacity-90 disabled:opacity-50" + className="inline-flex items-center gap-1.5 rounded-lg bg-gradient-primary px-3.5 py-1.5 text-xs font-semibold text-white shadow-[0_2px_10px_-2px_rgba(112,100,233,0.6)] transition-all hover:brightness-110 disabled:opacity-50" > {working && } Delegate to self