Skip to content

Commit

Permalink
[#7] xyz가설 프리토타이핑 teatarea 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
03hoho03 committed Apr 7, 2024
1 parent 6d22cd1 commit 320e92b
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions app/(route)/verification/ibulsin/_components/Textarea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import cn from 'classnames'
import { useForm } from 'react-hook-form'

interface TextAreaProps {
fieldKey: 'outline' | 'why' | 'marketResponse' | 'XYZ'
fieldKey: 'outline' | 'why' | 'marketResponse' | 'XYZ' | 'xyz' | 'pretotyping'
}

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

const outlineField = register('outline', {
Expand All @@ -29,6 +28,14 @@ function Textarea({ fieldKey }: TextAreaProps) {
required: '',
maxLength: { value: 500, message: '최대 500자까지 작성가능합니다.' },
})
const xyzField = register('xyz', {
required: '',
maxLength: { value: 500, message: '최대 500자까지 작성가능합니다.' },
})
const pretotypingField = register('pretotyping', {
required: '',
maxLength: { value: 500, message: '최대 500자까지 작성가능합니다.' },
})

const fields = {
outline: {
Expand All @@ -47,6 +54,14 @@ function Textarea({ fieldKey }: TextAreaProps) {
register: XYZField,
MaxLength: 500,
},
xyz: {
register: xyzField,
MaxLength: 500,
},
pretotyping: {
register: pretotypingField,
MaxLength: 500,
},
}

const countCharacters = () => {
Expand Down

0 comments on commit 320e92b

Please sign in to comment.