Skip to content

Commit 404c153

Browse files
committed
[#98] πŸ› integrate state with Tag and correct typo in NAME_RULES
1 parent f558f82 commit 404c153

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žsrc/components/shared/form/Form.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const Tag = ({
210210
name={name}
211211
control={control}
212212
rules={rules}
213-
render={() => <TagInput name={name} {...props} />}
213+
render={({ field }) => <TagInput {...field} {...props} />}
214214
/>
215215
)
216216
}

β€Žsrc/constants/formValidation.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const NAME_RULES: RegisterOptions = {
7171
required: generateRequiredMessage('name'),
7272
maxLength: {
7373
value: MAX_NAME_LENGTH,
74-
message: `λ‹‰λ„€μž„μ€ μ΅œλŒ€ ${MAX_NAME_LENGTH}μžκΉŒμ§€ κ°€λŠ₯ν•©λ‹ˆλ‹€.`,
74+
message: `이름은 μ΅œλŒ€ ${MAX_NAME_LENGTH}μžκΉŒμ§€ κ°€λŠ₯ν•©λ‹ˆλ‹€.`,
7575
},
7676
}
7777

0 commit comments

Comments
Β (0)