Refactor cabinet maintenance routing and add CabinetMaintenance component; update Header and main router configuration

This commit is contained in:
2024-12-21 18:11:47 +05:30
parent 366088b3f6
commit 835a3cc7fd
5 changed files with 65 additions and 4 deletions

19
src/components/Button.jsx Normal file
View File

@@ -0,0 +1,19 @@
import PropTypes from 'prop-types';
function Button({text, onClick}) {
return (
<button
className="px-12 py-2 text-lg text-white rounded-full bg-primary dark:bg-primary-dark"
onClick={onClick}
>
{text}
</button>
)
}
Button.propTypes = {
text: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequired
};
export default Button;

View File

@@ -25,7 +25,7 @@ function Header() {
name: "lockerOperation",
submenu: [
{ name: "accountCreation", path: "account-creation" },
{ name: "cabinetMaintenance", path: "cabinet-maintenance" },
{ name: "cabinetMaintenance", path: "operation/cabinet" },
{ name: "lockerMaintenance", path: "locker-maintenance" },
{ name: "rentPenaltyCollection", path: "rent-collection" },
{ name: "chargeManagement", path: "charge-management" },