fix(WEB): 견적 상세 페이지 상태 변경 및 견적완료일 표시 기능 추가
- 견적 상세 페이지에서 상태 변경 가능하도록 Select 컴포넌트 추가 - 견적완료일(completedDate) 필드를 FormData 타입에 추가 - 견적완료 상태일 때 완료일자 표시 - 저장 시 상태를 강제로 'completed'로 변경하던 로직 제거 - 목록 페이지에서 견적완료일이 표시되지 않던 문제 수정 - updated_at을 완료 상태의 completedDate로 사용 - QuantityInput 컴포넌트 controlled component 에러 수정 - defaultValue props 분리하여 spread 방지
This commit is contained in:
@@ -63,6 +63,8 @@ const QuantityInput = React.forwardRef<HTMLInputElement, QuantityInputProps>(
|
||||
disabled,
|
||||
onFocus,
|
||||
onBlur,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
defaultValue: _defaultValue, // controlled component이므로 defaultValue 무시
|
||||
...props
|
||||
},
|
||||
ref
|
||||
|
||||
Reference in New Issue
Block a user