mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
Rename checkbox prop to clarify meaning
This commit is contained in:
@@ -299,7 +299,7 @@ const TableContent = props => {
|
||||
{props.withCheckboxes && (
|
||||
<td>
|
||||
<Checkbox
|
||||
forTable
|
||||
noLeftMargin
|
||||
id={a.sid}
|
||||
value={a.sid}
|
||||
onChange={checkboxesToggleOne}
|
||||
|
||||
@@ -4,7 +4,7 @@ import Label from './Label';
|
||||
import Tooltip from './Tooltip';
|
||||
|
||||
const CheckboxContainer = styled.div`
|
||||
margin-left: ${props => props.forTable
|
||||
margin-left: ${props => props.noLeftMargin
|
||||
? '0'
|
||||
: props.invalid
|
||||
? '0.5rem'
|
||||
@@ -104,7 +104,7 @@ const Checkbox = (props, ref) => {
|
||||
return (
|
||||
<CheckboxContainer
|
||||
invalid={props.invalid}
|
||||
forTable={props.forTable}
|
||||
noLeftMargin={props.noLeftMargin}
|
||||
>
|
||||
<StyledCheckbox
|
||||
id={props.id}
|
||||
|
||||
Reference in New Issue
Block a user