Skip to content

Commit

Permalink
Use arrow function for component
Browse files Browse the repository at this point in the history
  • Loading branch information
belcherj committed Sep 21, 2019
1 parent 30cfb83 commit 2e488d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/checkbox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <input type="checkbox"> will trigger a error.
return (
Expand All @@ -20,7 +20,7 @@ function Checkbox({ checked = false, onChange }) {
</span>
</span>
);
}
};

Checkbox.propTypes = {
checked: PropTypes.bool,
Expand Down

0 comments on commit 2e488d9

Please sign in to comment.