dstpabuaran.com/resources/js/hooks/use-raw-material-draft.ts
Yoga Pangestu 4517eeb7ee feat: enhance employee and leave request management
- Added roles property to Employee type and a new column for displaying employee roles in the employee table.
- Updated leave request columns to use formatted start and end dates instead of raw date strings.
- Enhanced leave request index to accept filter options for status dynamically.
- Refactored transaction index to support dynamic filter options for status, channel, and payment type.
- Introduced AGENTS.md for session notes detailing model relationships, casting, scopes, reorganizations, and conventions.
2026-08-04 23:03:56 +07:00

12 lines
375 B
TypeScript

import { createDraftHook } from '@/hooks/use-draft-save';
import {
clearRawMaterialDraft,
saveRawMaterialDraft,
} from '@/lib/raw-material-draft';
import type { RawMaterialDraftData } from '@/lib/raw-material-draft';
export const useRawMaterialDraftSave = createDraftHook<RawMaterialDraftData>({
save: saveRawMaterialDraft,
clear: clearRawMaterialDraft,
});