Fix extra switch

This commit is contained in:
Justin Edmund 2022-02-02 19:28:47 -08:00
parent 8192f1d0ce
commit 11e1a81ada
2 changed files with 15 additions and 15 deletions

View file

@ -90,7 +90,7 @@ const Party = (props: Props) => {
// Render: JSX components // Render: JSX components
const navigation = ( const navigation = (
<PartySegmentedControl <PartySegmentedControl
extra={props.extra} extra={extra}
editable={props.editable} editable={props.editable}
selectedTab={currentTab} selectedTab={currentTab}
onClick={segmentClicked} onClick={segmentClicked}
@ -103,7 +103,7 @@ const Party = (props: Props) => {
partyId={props.partyId} partyId={props.partyId}
mainhand={props.mainWeapon} mainhand={props.mainWeapon}
weapons={props.weapons || {}} weapons={props.weapons || {}}
extra={props.extra} extra={extra}
editable={props.editable} editable={props.editable}
createParty={createParty} createParty={createParty}
pushHistory={props.pushHistory} pushHistory={props.pushHistory}

View file

@ -13,19 +13,19 @@ const ToggleSwitch: React.FC<Props> = (props: Props) => {
return ( return (
<div className="toggle-switch"> <div className="toggle-switch">
<input <input
type="checkbox"
checked={props.checked}
disabled={!props.editable}
className="toggle-switch-checkbox" className="toggle-switch-checkbox"
name={props.name} name={props.name}
id={props.name} id={props.name}
type="checkbox"
checked={props.checked}
disabled={!props.editable}
onChange={props.onChange} onChange={props.onChange}
/> />
<label className="toggle-switch-label" htmlFor={props.name}> <label className="toggle-switch-label" htmlFor={props.name}>
<span className="toggle-switch-switch" /> <span className="toggle-switch-switch" />
</label> </label>
</div> </div>
); )
} }
export default ToggleSwitch export default ToggleSwitch