fix: [build] 타입 오류 수정 (DepartmentDialog, PricingFormClient)

- PricingFormClient: mode prop에 'view' 타입 추가
- DepartmentDialog: Zod 스키마 .default() 제거 및 z.coerce.number→z.number 변경
This commit is contained in:
2026-03-13 10:32:49 +09:00
parent 742c0ba03e
commit 80164f722e
2 changed files with 4 additions and 4 deletions

View File

@@ -21,9 +21,9 @@ import type { DepartmentDialogProps, DepartmentFormData } from './types';
const departmentFormSchema = z.object({
code: z.string().min(1, '부서 코드를 입력하세요').max(50, '50자 이내로 입력하세요'),
name: z.string().min(1, '부서명을 입력하세요').max(100, '100자 이내로 입력하세요'),
description: z.string().max(500, '500자 이내로 입력하세요').default(''),
sortOrder: z.coerce.number().min(0, '0 이상 입력하세요').default(0),
isActive: z.boolean().default(true),
description: z.string().max(500, '500자 이내로 입력하세요'),
sortOrder: z.number().min(0, '0 이상 입력하세요'),
isActive: z.boolean(),
});
type FormData = z.infer<typeof departmentFormSchema>;