Skip to content

Commit bebcc2d

Browse files
authored
Merge pull request #126 from dnd-side-project/fix/new-mission-textinput
fix: 새 미션 text input place holder 수정 및 제한 글자수 변경
2 parents 4429acc + 5d37330 commit bebcc2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/manage-mission/_components/NewMission.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const missionSchema = z.object({
1111
content: z
1212
.string()
1313
.nonempty('미션 내용을 입력해주세요')
14-
.max(20, '20자 이내로 입력해주세요'),
14+
.max(15, '15자 이내로 입력해주세요'),
1515
})
1616

1717
type MissionFormData = z.infer<typeof missionSchema>
@@ -105,13 +105,13 @@ function NewMission({ onClose, onSuccess }: NewMissionProps) {
105105
<TextInput
106106
name="content"
107107
control={control}
108-
rules={{ required: '링크를 입력해주세요' }}
109-
placeholder="링크 입력"
108+
rules={{ required: '미션 내용을 입력해주세요' }}
109+
placeholder="미션 내용을 입력해주세요"
110110
className="mt-10"
111111
error={errorMessage}
112112
/>
113113
<div className="text-sm text-gray-500 flex justify-end">
114-
{missionValue.length} / 20
114+
{missionValue.length} / 15
115115
</div>
116116
<div className="flex-grow" />
117117

0 commit comments

Comments
 (0)