feat, refactor:
- 수용가-맨홀 매칭결과 양식 파일 다운로드 기능 추가 - 파일 다운로드 버튼 색상 green으로 변경
This commit is contained in:
@@ -6,12 +6,13 @@ interface FormSectionProps {
|
||||
titleNm: string
|
||||
form: any
|
||||
name: string
|
||||
required?: boolean
|
||||
}
|
||||
|
||||
const FormSection = ({ children, titleNm, form, name }: FormSectionProps) => {
|
||||
const FormSection = ({ children, titleNm, form, name, required }: FormSectionProps) => {
|
||||
return (
|
||||
<div className="grid grid-cols-[200px_1fr] items-center">
|
||||
<div className="text-xl font-medium">{titleNm}</div>
|
||||
<div className="text-xl font-medium">{titleNm}{required && <span className="text-2xl text-red-500">*</span>}</div>
|
||||
<FormField
|
||||
control={form.control}
|
||||
name={name}
|
||||
|
||||
Reference in New Issue
Block a user