Merge pull request #784 from mzivil/fix-territory-form-labels

Fix territory form label clicks not toggling correct input
This commit is contained in:
Keyan 2024-02-04 10:11:54 -06:00 committed by GitHub
commit 42e491b59d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -109,6 +109,7 @@ export default function TerritoryForm ({ sub }) {
label='links'
value='LINK'
name='postTypes'
id='links-checkbox'
groupClassName='ms-1 mb-0'
/>
</Col>
@ -118,6 +119,7 @@ export default function TerritoryForm ({ sub }) {
label='discussions'
value='DISCUSSION'
name='postTypes'
id='discussions-checkbox'
groupClassName='ms-1 mb-0'
/>
</Col>
@ -127,6 +129,7 @@ export default function TerritoryForm ({ sub }) {
label='bounties'
value='BOUNTY'
name='postTypes'
id='bounties-checkbox'
groupClassName='ms-1 mb-0'
/>
</Col>
@ -136,6 +139,7 @@ export default function TerritoryForm ({ sub }) {
label='polls'
value='POLL'
name='postTypes'
id='polls-checkbox'
groupClassName='ms-1 mb-0'
/>
</Col>
@ -168,6 +172,7 @@ export default function TerritoryForm ({ sub }) {
label='100k sats/month'
value='MONTHLY'
name='billingType'
id='monthly-checkbox'
readOnly={!!sub}
handleChange={checked => checked && setBilling('monthly')}
groupClassName='ms-1 mb-0'
@ -178,6 +183,7 @@ export default function TerritoryForm ({ sub }) {
label='1m sats/year'
value='YEARLY'
name='billingType'
id='yearly-checkbox'
readOnly={!!sub}
handleChange={checked => checked && setBilling('yearly')}
groupClassName='ms-1 mb-0'
@ -188,6 +194,7 @@ export default function TerritoryForm ({ sub }) {
label='3m sats once'
value='ONCE'
name='billingType'
id='once-checkbox'
readOnly={!!sub}
handleChange={checked => checked && setBilling('once')}
groupClassName='ms-1 mb-0'