Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(checkbox): react unctrolled component warning
Browse files Browse the repository at this point in the history
fix #2828
  • Loading branch information
korhaliv committed Sep 4, 2019
1 parent bdeac07 commit e6bc8d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions renderer/components/Form/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ const Checkbox = ({ label, description, isChecked, isDisabled, onChange, ...rest
</Container>
)

Checkbox.defaultProps = {
isChecked: false,
}

Checkbox.propTypes = {
description: PropTypes.string,
isChecked: PropTypes.bool,
Expand Down

0 comments on commit e6bc8d9

Please sign in to comment.