diff --git a/apps/sn/app/components/ui/formSection.tsx b/apps/sn/app/components/ui/formSection.tsx new file mode 100644 index 000000000..b4e578aae --- /dev/null +++ b/apps/sn/app/components/ui/formSection.tsx @@ -0,0 +1,24 @@ +import { FormField } from '@common/business_components/ui' +import React, { type ReactElement } from 'react' + +interface FormSectionProps { + children: ReactElement + titleNm: string + form: any + name: string +} + +const FormSection = ({ children, titleNm, form, name }: FormSectionProps) => { + return ( +
+
{titleNm}
+ children} + /> +
+ ) +} + +export default FormSection \ No newline at end of file diff --git a/apps/sn/app/ii/ir/irsetting/page.tsx b/apps/sn/app/ii/ir/irsetting/page.tsx index 865864d4c..e43a63835 100644 --- a/apps/sn/app/ii/ir/irsetting/page.tsx +++ b/apps/sn/app/ii/ir/irsetting/page.tsx @@ -6,9 +6,10 @@ import { DatePicker, Input } from '@common/components/ui' import { z } from 'zod' import { zodResolver } from '@hookform/resolvers/zod' import { useForm } from 'react-hook-form' +import FormSection from '@/components/ui/formSection' const formSchema = z.object({ region: z.string(), - suyeonga:z.number(), + suyeonga: z.number(), inputdate: z.coerce.date(), rtkSource: z.string(), }) @@ -18,7 +19,7 @@ const IrSetting = () => { resolver: zodResolver(formSchema), defaultValues: { region: "", - suyeonga:0, + suyeonga: 0, inputdate: new Date(), rtkSource: "", } @@ -41,16 +42,7 @@ const IrSetting = () => { return ( { }} graphBtn={true} tableInfoData={{ headList: rtxNmHeadlist, tableData: rtxNmDataList, cellClickFunc: () => { }, onPageChangeFunc: () => { } }}>
-
-
○ 처리구역
- ( - { }} selectClass={undefined} className='w-[150px]' /> - )} - /> -
+ { }} selectClass={undefined} className='w-[150px]' />
○ 오수 전환율