From a609709f41469beda88c35a3a46548128800849c Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Fri, 16 Aug 2019 17:13:56 -0400 Subject: [PATCH] ability to pass formik checkbox label classname --- .../formik-forms/formik-checkbox.jsx | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/components/formik-forms/formik-checkbox.jsx b/src/components/formik-forms/formik-checkbox.jsx index c9ff7e471..804c4b855 100644 --- a/src/components/formik-forms/formik-checkbox.jsx +++ b/src/components/formik-forms/formik-checkbox.jsx @@ -8,19 +8,16 @@ require('./formik-forms.scss'); require('../forms/row.scss'); const FormikCheckboxSubComponent = ({ - className, field, id, label, + labelClassName, ...props }) => (
@@ -44,7 +42,6 @@ const FormikCheckboxSubComponent = ({ ); FormikCheckboxSubComponent.propTypes = { - className: PropTypes.string, field: PropTypes.shape({ name: PropTypes.string, onBlur: PropTypes.function, @@ -52,31 +49,32 @@ FormikCheckboxSubComponent.propTypes = { value: PropTypes.bool }), id: PropTypes.string, - label: PropTypes.string + label: PropTypes.string, + labelClassName: PropTypes.string }; const FormikCheckbox = ({ - className, id, label, + labelClassName, name, ...props }) => ( ); FormikCheckbox.propTypes = { - className: PropTypes.string, id: PropTypes.string, label: PropTypes.string, + labelClassName: PropTypes.string, name: PropTypes.string };