Skip to content

Commit

Permalink
fix: update FromController required error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jooyeongmee committed Jan 26, 2025
1 parent a9ee3aa commit f5c2a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/web/src/common/components/FormController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function FormController<
defaultValue,
...props
}: FormControllerProps<TFieldValues, TName>) {
const requiredMessage = "필수값입니다.";
const requiredMessage = "필수로 채워야 하는 항목입니다";
const maxLengthMessage = `최대 ${props.maxLength}자까지 가능합니다.`;
const minLengthMessage = `최소 ${props.minLength}자 이상이어야 합니다.`;
const patternMessage = "정해진 형식에 맞지 않습니다.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ const FundingInfoFrame: React.FC<{ clubId: number }> = ({ clubId }) => {
name="expenditureAmount"
required
control={control}
renderItem={({ value, onChange }) => (
renderItem={({ value, onChange, errorMessage }) => (
<UnitInput
label="지출 금액"
placeholder="금액을 입력해주세요"
unit="원"
value={value?.toString()}
handleChange={onChange}
setErrorStatus={() => {}}
errorMessage={errorMessage}
/>
)}
/>
Expand Down

0 comments on commit f5c2a61

Please sign in to comment.