Skip to content

Commit

Permalink
Merge pull request #19 from primus-teoSprint/fix/#18
Browse files Browse the repository at this point in the history
[#18] 였λ₯˜ μˆ˜μ •
  • Loading branch information
03hoho03 authored Apr 6, 2024
2 parents 120ae56 + 2422e53 commit db4f9cc
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions app/(route)/verification/ibulsin/_components/Textarea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,26 @@ interface TextAreaProps {
}

function Textarea({ fieldKey }: TextAreaProps) {
console.log(fieldKey)
const { register, watch } = useForm()

const outlineField = register('outline', {
required: '',
maxLength: { value: 500, message: 'μ΅œλŒ€ 500μžκΉŒμ§€ μž‘μ„±κ°€λŠ₯ν•©λ‹ˆλ‹€.' },
})
const whyField = register('whyField', {
const whyField = register('why', {
required: '',
maxLength: { value: 500, message: 'μ΅œλŒ€ 500μžκΉŒμ§€ μž‘μ„±κ°€λŠ₯ν•©λ‹ˆλ‹€.' },
})
const marketResponseField = register('marketResponse', {
required: '',
maxLength: { value: 500, message: 'μ΅œλŒ€ 500μžκΉŒμ§€ μž‘μ„±κ°€λŠ₯ν•©λ‹ˆλ‹€.' },
})
const XYZField = register('XYZ', {
required: '',
maxLength: { value: 500, message: 'μ΅œλŒ€ 500μžκΉŒμ§€ μž‘μ„±κ°€λŠ₯ν•©λ‹ˆλ‹€.' },
})

const fields = {
outline: {
register: outlineField,
Expand All @@ -30,11 +40,11 @@ function Textarea({ fieldKey }: TextAreaProps) {
MaxLength: 500,
},
marketResponse: {
register: whyField,
register: marketResponseField,
MaxLength: 500,
},
XYZ: {
register: whyField,
register: XYZField,
MaxLength: 500,
},
}
Expand Down

0 comments on commit db4f9cc

Please sign in to comment.