lakshyakumar / enthalpy

React UI kit for complete portfolios
4 stars 3 forks source link

[Fix] Add default conditions and strict properties checks to create a robust EnthalpyButton #3

Closed lakshyakumar closed 3 years ago

lakshyakumar commented 3 years ago

Describe the bug The EnthalpyButton component should be working even if the user is missing any parameter or children. Make sure to remove the any type in the EnthalpyButton as good practice.

To Reproduce Steps to reproduce the behavior:

  1. delete the properties while using the EnthalpyButton in .md file.
  2. Check whether the interface or the other typescript code should not be having type any.
  3. Try to add informative comment lines.
  4. try to include good practices for the component.

Expected behavior The component should be following the good practices and should not fail even the user forgets to pass any variable.