fix autowithdraw wording

This commit is contained in:
keyan 2024-01-12 23:45:38 -06:00
parent b530b611f5
commit 6288db1b83

View File

@ -35,7 +35,7 @@ export default function LightningAddress () {
return ( return (
<CenterLayout> <CenterLayout>
<h2 className='pb-2'>lightning address</h2> <h2 className='pb-2'>lightning address</h2>
<h6 className='text-muted text-center pb-3'>autowithdraw to a lightning address when threshold is breached</h6> <h6 className='text-muted text-center pb-3'>autowithdraw to a lightning address when desired balance is breached</h6>
<Form <Form
initial={{ initial={{
lnAddr: me?.privates?.lnAddr || '', lnAddr: me?.privates?.lnAddr || '',
@ -67,13 +67,13 @@ export default function LightningAddress () {
autoFocus autoFocus
/> />
<Input <Input
label='threshold' label='desired balance'
name='autoWithdrawThreshold' name='autoWithdrawThreshold'
onChange={(formik, e) => { onChange={(formik, e) => {
const value = e.target.value const value = e.target.value
setSendThreshold(Math.max(Math.floor(value / 10), 1)) setSendThreshold(Math.max(Math.floor(value / 10), 1))
}} }}
hint={isNaN(sendThreshold) ? undefined : `note: will attempt withdraw when threshold is exceeded by ${sendThreshold} sats`} hint={isNaN(sendThreshold) ? undefined : `note: will attempt withdrawal when desired balance is exceeded by ${sendThreshold} sats`}
append={<InputGroup.Text className='text-monospace'>sats</InputGroup.Text>} append={<InputGroup.Text className='text-monospace'>sats</InputGroup.Text>}
/> />
<Input <Input