DOWINN-INTERN / employee-record-system-frontend

🤖 A simple and responsive application for managing employee records, built with React, TypeScript, and Tailwind CSS. It lets you easily add, view, and update employee information.
MIT License
1 stars 0 forks source link

Branch - Card Component - Edit Button Functions (Not in Higher Order) (2) #29

Open wndrflgrc opened 1 month ago

wndrflgrc commented 1 month ago

Now this part is the one that gave me the most headache, this is the code that auto populates the fields when you click the edit button. I created so many variations for this code and every single one works but sometimes not. Sometimes the first code runs, sometime other codes runs sometimes not. There's also the esc keyboard function https://github.com/DOWINN-INTERN/employee-record-system-frontend/blob/ed087a380ff53f6b7a76fd1a6cd4ad9b3e44144f/main/src/pages/Organization/Branch/CardBranchButton.tsx#L89-L124