Fix extra switch
This commit is contained in:
parent
8192f1d0ce
commit
11e1a81ada
2 changed files with 15 additions and 15 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in a new issue