wwWallet / wallet-frontend

BSD 2-Clause "Simplified" License
21 stars 6 forks source link

Fix `tabIndex` warnings: Correct typo and ensure valid values #337

Closed gkatrakazas closed 3 days ago

gkatrakazas commented 3 days ago

This PR addresses two issues related to the tabIndex attribute in the slide component:

  1. Fix typo in tabIndex property: Corrects the casing from tabindex to tabIndex to comply with React's DOM property conventions, eliminating the associated warning in the console. console.js:288 Warning: Invalid DOM property tabindex. Did you mean tabIndex?

  2. Fix invalid tabIndex value: Ensures that a valid number is passed to the tabIndex attribute by using conditional rendering. This resolves the warning about receiving a false value for a non-boolean attribute. react-dom.development.js:74 Warning: Received false for a non-boolean attribute tabIndex.