Skip to content

Commit cc154f5

Browse files
committed
rename BooleanInput cmp
1 parent 2369e53 commit cc154f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/forms/widgets/text/BooleanInput.js renamed to src/lib/forms/widgets/text/BooleanCheckbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { RadioField } from "../../RadioField";
1313

1414
import { useField } from "formik";
1515

16-
export default function BooleanInput({
16+
export default function BooleanCheckbox({
1717
description,
1818
icon,
1919
falseLabel,
@@ -56,7 +56,7 @@ export default function BooleanInput({
5656
);
5757
}
5858

59-
BooleanInput.propTypes = {
59+
BooleanCheckbox.propTypes = {
6060
fieldPath: PropTypes.string.isRequired,
6161
label: PropTypes.string.isRequired,
6262
trueLabel: PropTypes.string.isRequired,
@@ -66,7 +66,7 @@ BooleanInput.propTypes = {
6666
required: PropTypes.bool,
6767
};
6868

69-
BooleanInput.defaultProps = {
69+
BooleanCheckbox.defaultProps = {
7070
icon: undefined,
7171
required: false,
7272
};

src/lib/forms/widgets/text/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export { default as TextArea } from "./TextArea";
33
export { default as Input } from "./Input";
44
export { default as MultiInput } from "./MultiInput";
55
export { default as NumberInput } from "./NumberInput";
6-
export { default as BooleanInput } from "./BooleanInput";
6+
export { default as BooleanCheckbox } from "./BooleanCheckbox";

0 commit comments

Comments
 (0)