From 2e488d91ad3fa0592e6b44c39d202d95a5a1977f Mon Sep 17 00:00:00 2001 From: belcherj Date: Fri, 20 Sep 2019 22:19:31 -0400 Subject: [PATCH] Use arrow function for component --- lib/components/checkbox/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/checkbox/index.jsx b/lib/components/checkbox/index.jsx index 67a53e506..03a608a45 100644 --- a/lib/components/checkbox/index.jsx +++ b/lib/components/checkbox/index.jsx @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; import CheckmarkIcon from '../../icons/checkmark'; import CircleIcon from '../../icons/circle'; -function Checkbox({ checked = false, onChange }) { +const Checkbox = ({ checked = false, onChange }) => { // A custom checkbox with an ARIA role is used here to work around a bug in // DraftJS, where using a hidden will trigger a error. return ( @@ -20,7 +20,7 @@ function Checkbox({ checked = false, onChange }) { ); -} +}; Checkbox.propTypes = { checked: PropTypes.bool,