Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperhodge committed Mar 7, 2024
1 parent 5e784be commit 3490ff7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const FormCheckboxSetContextProvider = ({
checked: isControlled ? value.includes(checkboxProps.value) : undefined,
defaultChecked: isControlled ? undefined : (defaultValue && defaultValue.includes(checkboxProps.value)),
});
// eslint-disable-next-line react/jsx-no-constructed-context-values
const contextValue = {

Check warning on line 45 in src/editors/sharedComponents/SelectableBox/FormCheckboxSetContext.jsx

View check run for this annotation

Codecov / codecov/patch

src/editors/sharedComponents/SelectableBox/FormCheckboxSetContext.jsx#L45

Added line #L45 was not covered by tests
name,
value,
Expand Down
24 changes: 12 additions & 12 deletions src/editors/sharedComponents/SelectableBox/getInputType.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ import {
export const getInputType = (component, type) => {
if (component === 'SelectableBox') {
switch (type) {
case 'radio':
return RadioControl;
case 'checkbox':
return CheckboxControl;
default:
return RadioControl;
case 'radio':
return RadioControl;
case 'checkbox':
return CheckboxControl;
default:
return RadioControl;

Check warning on line 14 in src/editors/sharedComponents/SelectableBox/getInputType.jsx

View check run for this annotation

Codecov / codecov/patch

src/editors/sharedComponents/SelectableBox/getInputType.jsx#L9-L14

Added lines #L9 - L14 were not covered by tests
}
} else if (component === 'SelectableBoxSet') {
switch (type) {
case 'radio':
return Form.RadioSet;
case 'checkbox':
return Form.CheckboxSet;
default:
return Form.RadioSet;
case 'radio':
return Form.RadioSet;
case 'checkbox':
return Form.CheckboxSet;
default:
return Form.RadioSet;

Check warning on line 23 in src/editors/sharedComponents/SelectableBox/getInputType.jsx

View check run for this annotation

Codecov / codecov/patch

src/editors/sharedComponents/SelectableBox/getInputType.jsx#L18-L23

Added lines #L18 - L23 were not covered by tests
}
}
};

0 comments on commit 3490ff7

Please sign in to comment.