Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit 40ae40f

Browse files
authored
Merge pull request #714 from aibtcdev/cleanups3
Cleanups3
2 parents 25711ba + 4cc6361 commit 40ae40f

5 files changed

Lines changed: 23 additions & 30 deletions

File tree

src/app/application-layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ export default function ApplicationLayout({
172172
<DropdownMenuSeparator className="my-1" />
173173
<DropdownMenuItem
174174
onClick={(e) => {
175-
handleNavigation("/account?tab=wallets", e);
175+
handleNavigation("/account?tab=settings", e);
176176
setMobileMenuOpen(false);
177177
}}
178178
className="group flex items-center gap-3 px-3 py-2 text-sm font-medium text-foreground rounded-sm hover:bg-primary/10 focus:bg-primary/10 focus:text-primary transition-colors duration-200 ease-in-out cursor-pointer"
179179
>
180-
<User className="h-4 w-4" />
181-
<span className="group-hover:text-white">Wallets</span>
180+
<Settings className="h-4 w-4" />
181+
<span className="group-hover:text-white">Settings</span>
182182
</DropdownMenuItem>
183183
<DropdownMenuSeparator className="my-1" />
184184
<div className="px-3 py-2">

src/components/account/ConnectedWallet.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,13 @@ export function ConnectedWallet({ fetchWallets }: ConnectedWalletProps) {
230230
return (
231231
<>
232232
<div>
233-
<div className="flex items-center justify-between mb-4">
234-
<h2 className="text-xl font-bold text-foreground">
235-
Connected Wallet
236-
</h2>
237-
<div className="flex items-center gap-2">
233+
<div className="mb-4">
234+
<div className="flex flex-col md:flex-row md:items-center md:justify-between gap-3 md:gap-0">
235+
<h2 className="text-xl font-bold text-foreground">
236+
Connected Wallet
237+
</h2>
238238
{process.env.NEXT_PUBLIC_STACKS_NETWORK === "testnet" && (
239-
<>
239+
<div className="flex items-center gap-2">
240240
<Button
241241
onClick={handleRequestSTX}
242242
disabled={isRequestingSTX || !isAuthenticated}
@@ -255,7 +255,7 @@ export function ConnectedWallet({ fetchWallets }: ConnectedWalletProps) {
255255
>
256256
{isRequestingSBTC ? "Requesting..." : "Get testnet sBTC"}
257257
</Button>
258-
</>
258+
</div>
259259
)}
260260
{/* <Button
261261
onClick={handleSignOut}

src/components/auth/XLinking.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ export function XLinking({
129129
<div className="animate-spin rounded-full h-6 w-6 border-2 border-primary border-t-transparent"></div>
130130
</div>
131131
) : needsXLink ? (
132-
<div className="flex items-start justify-between gap-3 p-4 rounded-sm">
133-
<div className="flex items-start gap-2 flex-1">
132+
<div className="flex flex-col gap-4 p-4 rounded-sm">
133+
<div className="flex items-start gap-1.5 flex-1">
134134
<svg
135135
className="w-4 h-4 flex-shrink-0 mt-0.5"
136136
viewBox="0 0 22 22"
@@ -142,11 +142,16 @@ export function XLinking({
142142
fill="#1d9bf0"
143143
/>
144144
</svg>
145-
<h4 className="font-medium">
145+
<h4 className="font-medium text-left">
146146
Verified X Account Required to Submit Contribution
147147
</h4>
148148
</div>
149-
<Button onClick={handleLinkX} disabled={isLinking} size="sm">
149+
<Button
150+
onClick={handleLinkX}
151+
disabled={isLinking}
152+
size="sm"
153+
className="w-full"
154+
>
150155
{isLinking ? "Linking..." : "Link X Account"}
151156
</Button>
152157
</div>

src/components/leaderboard/LeaderboardView.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ const LeaderboardView = ({ metrics }: LeaderboardViewProps) => {
309309
<tr>
310310
<td colSpan={3} className="h-24 text-center">
311311
<div className="flex flex-col items-center justify-center space-y-2">
312-
<p className="text-muted-foreground">No users found</p>
312+
<p className="text-muted-foreground">
313+
No contributions yet
314+
</p>
313315
{searchQuery && (
314316
<Button
315317
variant="link"

src/components/proposals/ProposalSubmission.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,20 +1221,6 @@ export function ProposalSubmission({
12211221
<div className="flex items-start justify-between mb-1">
12221222
<h2 className="text-3xl font-extrabold">Submit to Earn</h2>
12231223
{/* Tip positioned at top right */}
1224-
<div className="relative group">
1225-
<div className="flex items-center gap-1 text-sm text-zinc-400 cursor-pointer px-3 py-2 rounded-sm bg-zinc-900/40 hover:bg-zinc-800/40 transition-colors">
1226-
💡 <strong>Tips</strong>
1227-
</div>
1228-
{/* Tooltip */}
1229-
<div className="absolute right-0 top-full mt-2 w-80 p-3 bg-zinc-800 border border-zinc-700 rounded-sm shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
1230-
<div className="text-sm text-zinc-200">
1231-
All submissions are evaluated by voting agents to be approved
1232-
or denied for reward.
1233-
</div>
1234-
{/* Arrow pointing up */}
1235-
<div className="absolute -top-1 right-4 w-2 h-2 bg-zinc-800 border-l border-t border-zinc-700 rotate-45"></div>
1236-
</div>
1237-
</div>
12381224
</div>
12391225
<p className="text-md">
12401226
Submit proof of completion for the current order for agent
@@ -1243,7 +1229,7 @@ export function ProposalSubmission({
12431229
</div>
12441230

12451231
{/* Content Body */}
1246-
<div className="flex-1 space-y-6 relative">
1232+
<div className="flex-1 space-y-6 relative min-h-[250px] md:min-h-0">
12471233
{/* Locked Overlay for Unauthenticated Users */}
12481234
{!hasAccessToken && (
12491235
<div className="absolute inset-0 bg-zinc-900 rounded-sm flex flex-col items-center justify-center z-10">

0 commit comments

Comments
 (0)