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
8 changes: 4 additions & 4 deletions src/components/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
export function ConnectWallet({ onNavigate, compact }: ConnectWalletProps = {}) {
const { address, isConnected } = useAccount();
const { connect, connectors } = useConnect();
const { disconnect } = useDisconnect();

Check warning on line 20 in src/components/ConnectWallet.tsx

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

'disconnect' is assigned a value but never used
const autoConnectAttempted = useRef(false);
const [inMiniApp, setInMiniApp] = useState(false);
const { profile } = useConnectedIdentity();
Expand Down Expand Up @@ -53,7 +53,7 @@
<Link
href={`/profile/${address}`}
onClick={onNavigate}
className="border-border text-accent inline-flex items-center gap-1.5 rounded border px-2 py-1 text-xs font-medium hover:opacity-80 transition-opacity"
className="border-border text-accent inline-flex h-7 items-center gap-1.5 rounded border px-2 py-1 text-xs font-medium hover:opacity-80 transition-opacity"
>
{profile?.pfpUrl && (
// eslint-disable-next-line @next/next/no-img-element
Expand All @@ -77,7 +77,7 @@
<Link
href={`/profile/${address}`}
onClick={onNavigate}
className="border-border text-accent inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium hover:opacity-80 transition-opacity"
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
Expand Down Expand Up @@ -116,8 +116,8 @@
type="button"
className={
compact
? "border-border text-accent hover:bg-accent hover:text-background rounded border px-2 py-1 text-xs font-medium transition-colors"
: "border-border text-accent hover:bg-accent hover:text-background rounded-full border px-3 py-1 text-xs font-medium transition-colors"
? "border-border text-accent hover:bg-accent hover:text-background flex h-7 items-center rounded border px-2 py-1 text-xs font-medium transition-colors"
: "border-border text-accent hover:bg-accent hover:text-background rounded border px-3 py-1 text-xs font-medium transition-colors"
}
>
{compact ? "Connect" : "connect wallet"}
Expand Down
6 changes: 3 additions & 3 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ export function NavBar() {

{/* Right side: wallet + mobile toggle */}
<div className="flex items-center gap-1.5">
{/* Desktop: pill ConnectWallet */}
{/* Desktop: ConnectWallet */}
<div className="hidden md:block">
<ConnectWallet />
</div>
{/* Mobile: matched-height boxes — PFP box + hamburger box */}
<div className="md:hidden">
<div className="flex items-center md:hidden">
<ConnectWallet compact />
</div>
<button
onClick={() => setMobileOpen(!mobileOpen)}
className="border-border text-muted hover:text-foreground flex items-center justify-center rounded border px-2 py-1 transition-colors md:hidden"
className="border-border text-muted hover:text-foreground flex h-7 items-center justify-center rounded border px-2 py-1 transition-colors md:hidden"
aria-label="Toggle menu"
aria-expanded={mobileOpen}
>
Expand Down
Loading