- Added `AdminDutyList` and `ReassignSheet` components for improved duty management in the admin panel. - Introduced `useAdminPage` hook to encapsulate admin-related logic, including user and duty loading, and reassign functionality. - Updated `frontend.mdc` documentation to reflect new admin components and their usage. - Improved error handling for API responses, particularly for access denied scenarios. - Refactored admin page to utilize new components, streamlining the UI and enhancing maintainability.
10 lines
345 B
TypeScript
10 lines
345 B
TypeScript
/**
|
|
* Admin feature: hook and presentational components for the admin page.
|
|
*/
|
|
|
|
export { useAdminPage } from "./useAdminPage";
|
|
export { AdminDutyList } from "./AdminDutyList";
|
|
export { ReassignSheet } from "./ReassignSheet";
|
|
export type { AdminDutyListProps } from "./AdminDutyList";
|
|
export type { ReassignSheetProps } from "./ReassignSheet";
|