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