Browse Source

add default props

itizawa 5 năm trước cách đây
mục cha
commit
cdcf27ca31
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/client/js/components/Navbar/ThreeStrandedButton.jsx

+ 4 - 0
src/client/js/components/Navbar/ThreeStrandedButton.jsx

@@ -51,4 +51,8 @@ ThreeStrandedButton.propTypes = {
   isBtnDisabled: PropTypes.bool,
 };
 
+ThreeStrandedButton.defaultProps = {
+  isBtnDisabled: false,
+};
+
 export default withTranslation()(ThreeStrandedButton);