@@ -128,10 +136,17 @@ const ActionPanel: React.FC
= ({
{heading}
{note && {note}
}
- {block?.kind === "message" ? (
- {block.reason}
+ {blocksEverySide ? (
+
+ {messageBlock.reason}
+
) : (
<>
+ {blocksThisSide && (
+
+ {messageBlock.reason}
+
+ )}
{actionBlock && (
{actionBlock.reason}
@@ -163,66 +178,77 @@ const ActionPanel: React.FC = ({
-
-
-
-
onAmountChange(event.target.value)}
- placeholder="0.00"
- inputMode="decimal"
- />
-
{ticker}
- {balance !== null && (
-
+ {estimate.status === "ready"
+ ? estimate.value
+ : estimate.reason}
+
+
-
+ {`You have ${overBalance} ${ticker}. Enter ${overBalance} or less.`}
+
+ )}
- {overBalance !== undefined && (
-
- {`You have ${overBalance} ${ticker}. Enter ${overBalance} or less.`}
-
+