diff --git a/web/src/components/ConnectedWalletButton.js b/web/src/components/ConnectedWalletButton.js index ed852a0..edec70f 100644 --- a/web/src/components/ConnectedWalletButton.js +++ b/web/src/components/ConnectedWalletButton.js @@ -1,13 +1,10 @@ import { useAccount, useConnect, useDisconnect, useEnsName } from "wagmi"; import { useState } from "react"; import { - Avatar, - Box, Button, Card, CardContent, CardHeader, - Chip, Modal, Stack, Typography, @@ -36,24 +33,19 @@ export default function ConnectedWalletButton({ - - + + {ensName ?? shortenAddress(address)} - - - - - ) : null - } - label={connector?.name} - /> - + + {connector?.id === "safe" ? ( + + ) : null} + + {connector?.name} + + ); @@ -77,7 +69,7 @@ export default function ConnectedWalletButton({ }} onClose={() => setShowingOptions(false)} > - + diff --git a/web/src/components/Layout.js b/web/src/components/Layout.js index a46506f..9e772fc 100644 --- a/web/src/components/Layout.js +++ b/web/src/components/Layout.js @@ -69,7 +69,7 @@ export default function Layout({ breadcrumbs = [], children }) { }} > - + Rocket Sweep diff --git a/web/src/components/SafeSweepCard.js b/web/src/components/SafeSweepCard.js index 9303db5..331fa22 100644 --- a/web/src/components/SafeSweepCard.js +++ b/web/src/components/SafeSweepCard.js @@ -142,8 +142,13 @@ function BatchCard({ batch, upNext, readOnly }) { }); }; return ( - - + + {total.eq(0) @@ -160,7 +165,7 @@ function BatchCard({ batch, upNext, readOnly }) { {efficiencyPer.toFixed(2)}% Efficiency - {efficiencySeverity === "success" + {!upNext || efficiencySeverity === "success" ? "" : "Consider waiting for lower gas prices or a larger balance."} @@ -306,7 +311,7 @@ function SafeAlert({ sx, label, safeAddress }) { } > - Safe Configured: {label} address + Safe Configured: {label} ); } @@ -355,7 +360,7 @@ function SweepCardContent({ sx, nodeAddress }) { return ( {!hasSafeWithdrawalAddress && !hasSafeNodeAddress && ( - + Executing a batch sweep requires the node or its withdrawal address to be a{" "} @@ -365,51 +370,46 @@ function SweepCardContent({ sx, nodeAddress }) { )} {hasSafeNodeAddress && ( )} {hasSafeWithdrawalAddress && ( )} - - {unupgradedMps.length > 0 && ( - <> - - - upgradeAll(unupgradedMps)} - > - Upgrade - - ) - } + {unupgradedMps.length > 0 && ( + upgradeAll(unupgradedMps)} > - - minipools - need upgrade - - You cannot distribute minipools that have not been upgraded. - - - - - )} - + Upgrade + + ) + } + > + + minipools need + upgrade + + You cannot distribute minipools that have not been upgraded. + + )} + + - + No minipools found. ))} - {moreBatches.length > 0 && isShowingMore && ( <> @@ -478,7 +477,7 @@ function SweepCardContent({ sx, nodeAddress }) { {moreBatches.map((batch, i) => ( - + + {nodeAddresses.map((nodeAddress) => ( - - - + ))} - + ); } @@ -77,32 +73,54 @@ export default function HomePage() { {!isConnected && ( - - - - Connect wallet to view your nodes - - - - + + + + + + Connect wallet to view your nodes + + + + + + )} - - - - {isConnected - ? "Find nodes by address" - : "Or find nodes by address"} - - - - + + + + + + {isConnected + ? "Find nodes by address" + : "Or find nodes by address"} + + + + + + - {input && isAddress && } - {!input && isConnected && } + + + {input && isAddress && ( + + )} + {!input && isConnected && ( + + )} + + ); } diff --git a/web/src/pages/NodePage.js b/web/src/pages/NodePage.js index a40ee1f..f56b660 100644 --- a/web/src/pages/NodePage.js +++ b/web/src/pages/NodePage.js @@ -29,10 +29,10 @@ export default function NodePage() { ) : ( - + - +