Loading...
All good. The dispensing, inventory, restocking, and patient directory tabs, and the mathematical logic behind it looks fine for now. Let's move on to Brgy Data tab.
Keep the section where it displays the Barangay Transactions, but clear out the entries on the Barangay Code and the Transaction per Barangay.
Above this section, I want to have the same input section like in the inventory tab where it asks for the Barangay Code, and a submit button. Everytime the submit button is clicked, the Barangay Code will be displayed in the section below and it keeps the value like the other tabs
Loading...
The code returns the following error:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
at (/components/BrgyData)
Revise the code to address the error.