Skip to content

Commit

Permalink
added id to layer toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlstarr committed Jul 24, 2024
1 parent 5521c6e commit 58251ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/components/ui/ToggleComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const ToggleComponent = (props: IToggleComponent) => {
return (
<div>
<Switch
className={'react-switch' + (checked ? ` toggle-${layerName}-on` : '')}
className={'react-switch'}
id={checked ? `toggle-${layerName}-on` : ''}
checkedIcon={false}
height={13}
width={25}
Expand Down

0 comments on commit 58251ba

Please sign in to comment.