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 - Status Button #26

Open wndrflgrc opened 1 month ago

wndrflgrc commented 1 month ago

This is the button. https://github.com/DOWINN-INTERN/employee-record-system-frontend/blob/ed087a380ff53f6b7a76fd1a6cd4ad9b3e44144f/main/src/pages/Organization/Branch/CardBranchButton.tsx#L141-L152

This is for toggling a Branch's status between active or Inactive. If a branch is inactive it shouldn't be possible to add a Department or do anything to it. It also has a conditional rendering where the message will change based on its status

https://github.com/DOWINN-INTERN/employee-record-system-frontend/blob/ed087a380ff53f6b7a76fd1a6cd4ad9b3e44144f/main/src/pages/Organization/Branch/CardBranchButton.tsx#L236-L300