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

@ -12,20 +12,20 @@ interface Props {
const ToggleSwitch: React.FC<Props> = (props: Props) => { const ToggleSwitch: React.FC<Props> = (props: Props) => {
return ( return (
<div className="toggle-switch"> <div className="toggle-switch">
<input <input
type="checkbox" className="toggle-switch-checkbox"
checked={props.checked} name={props.name}
disabled={!props.editable} id={props.name}
className="toggle-switch-checkbox" type="checkbox"
name={props.name} checked={props.checked}
id={props.name} 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