Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { connectorsForWallets } from "@rainbow-me/rainbowkit";
import type { Wallet } from "@rainbow-me/rainbowkit";
import {
metaMaskWallet,
coinbaseWallet,
baseAccount,
trustWallet,
rainbowWallet,
Expand Down Expand Up @@ -34,6 +35,7 @@ const walletConnectors = connectorsForWallets(
wallets: [
farcasterWallet,
metaMaskWallet,
coinbaseWallet,
baseAccount,
trustWallet,
rainbowWallet,
Expand Down
4 changes: 2 additions & 2 deletions src/app/airdrop/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { UserPoints } from "../../components/airdrop/UserPoints";
import { ClaimPanel } from "../../components/airdrop/ClaimPanel";
import { Leaderboard } from "../../components/airdrop/Leaderboard";
import { WeeklySnapshots } from "../../components/airdrop/WeeklySnapshots";
import { AIRDROP_CONFIG } from "../../../lib/airdrop/config";
import { getAirdropConfig } from "../../../lib/airdrop/config";

export const metadata: Metadata = {
title: "PLOT Big or Nothing Airdrop | PlotLink",
description: "Earn PL points through trading, writing, and referrals.",
};

export default function AirdropPage() {
const campaignEnded = new Date() > AIRDROP_CONFIG.CAMPAIGN_END;
const campaignEnded = new Date() > getAirdropConfig().CAMPAIGN_END;

return (
<main className="mx-auto max-w-[var(--page-max)] px-6 py-8 pb-24 lg:pb-8">
Expand Down
45 changes: 27 additions & 18 deletions src/components/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,34 @@ export function ConnectWallet({ onNavigate, compact }: ConnectWalletProps = {})
);
}

// Full mode: pill with PFP + @username or truncated address
// Full mode: pill with PFP + truncated address + disconnect
return (
<Link
href={`/profile/${address}`}
onClick={onNavigate}
className="border-border text-accent inline-flex items-center gap-1.5 rounded border px-3 py-1 text-xs font-medium hover:opacity-80 transition-opacity"
>
{profile?.pfpUrl && (
// eslint-disable-next-line @next/next/no-img-element
<img
src={profile.pfpUrl}
alt=""
width={18}
height={18}
className="rounded-full"
/>
)}
{displayAddr}
</Link>
<div className="inline-flex items-center gap-1.5">
<Link
href={`/profile/${address}`}
onClick={onNavigate}
className="border-border text-accent inline-flex items-center gap-1.5 rounded border px-3 py-1 text-xs font-medium hover:opacity-80 transition-opacity"
>
{profile?.pfpUrl && (
// eslint-disable-next-line @next/next/no-img-element
<img
src={profile.pfpUrl}
alt=""
width={18}
height={18}
className="rounded-full"
/>
)}
{displayAddr}
</Link>
<button
onClick={() => disconnect()}
className="text-muted hover:text-foreground text-[10px] transition-colors"
title="Disconnect wallet"
>
</button>
</div>
);
}

Expand Down
Loading