From f9a99a7debf48fcebc55e5a28b541b08cadcd038 Mon Sep 17 00:00:00 2001 From: keyan Date: Wed, 17 Apr 2024 14:22:17 -0500 Subject: [PATCH] give 1 sat fee button overlay but not button text --- components/action-tooltip.js | 4 ++-- components/fee-button.js | 4 ++-- components/poll.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/action-tooltip.js b/components/action-tooltip.js index d2fc246f..ff5603e1 100644 --- a/components/action-tooltip.js +++ b/components/action-tooltip.js @@ -8,7 +8,7 @@ export default function ActionTooltip ({ children, notForm, disable, overlayText if (!notForm) { formik = useFormikContext() } - if (disable) { + if (disable || !overlayText) { return children } return ( @@ -16,7 +16,7 @@ export default function ActionTooltip ({ children, notForm, disable, overlayText placement={placement || 'bottom'} overlay={ - {overlayText || '1 sat'} + {overlayText} } trigger={['hover', 'focus']} diff --git a/components/fee-button.js b/components/fee-button.js index 6ad9fa57..fad5bf2c 100644 --- a/components/fee-button.js +++ b/components/fee-button.js @@ -118,12 +118,12 @@ export default function FeeButton ({ ChildButton = SubmitButton, variant, text, ? 'free' : total > 1 ? numWithUnits(total, { abbreviate: false, format: true }) - : total === 1 ? undefined : 'free' + : undefined disabled ||= ctxDisabled return (
- + {text} {!me && } diff --git a/components/poll.js b/components/poll.js index 7185421c..c7765e48 100644 --- a/components/poll.js +++ b/components/poll.js @@ -52,7 +52,7 @@ export default function Poll ({ item }) { const variables = { id: v.id } return ( - +