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

View file

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