NUS-Project-SaBai / FrontEnd

1 stars 1 forks source link

Refactor medication modal #152

Closed aldentantan closed 1 month ago

aldentantan commented 1 month ago

-Moved medication form input fields and submit button from components/pharmacy/stock/MedicationModal.js to pages/pharmacy/stock/index.js -Created a const medicationForm to store input fields and submit button -Passed medicationForm as a child to medication modal

aldentantan commented 1 month ago

-Separated medication form logic and styling and modal logic and styling