Rename checkbox prop to clarify meaning

This commit is contained in:
user
2020-05-28 16:33:30 -07:00
parent 9c35dca4fe
commit b4d1da9d41
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -299,7 +299,7 @@ const TableContent = props => {
{props.withCheckboxes && (
<td>
<Checkbox
forTable
noLeftMargin
id={a.sid}
value={a.sid}
onChange={checkboxesToggleOne}
+2 -2
View File
@@ -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}