-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #856 from KEEPER31337/feature/helper_text_constant…
…s로_빼기_#847 Feature/helper text constants로 빼기 #847
- Loading branch information
Showing
16 changed files
with
144 additions
and
81 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
export const COMMON = { | ||
success: {}, | ||
error: { | ||
required: '필수 정보입니다.', | ||
onlyNumber: '숫자만 입력 가능합니다.', | ||
onlyHttps: 'https:// 로 시작해야 합니다.', | ||
minLength: (min: number) => `${min}글자 이상 입력해주세요.` as const, | ||
maxLength: (max: number) => `최대 글자수 ${max}글자를 초과했습니다.` as const, | ||
}, | ||
} as const; | ||
|
||
export const EMAIL_MSG = { | ||
success: {}, | ||
error: { | ||
formatError: '이메일 형식을 확인해주세요.', | ||
}, | ||
} as const; | ||
|
||
export const CONFIRM_PASSWORD_MSG = { | ||
success: { | ||
match: '비밀번호가 일치합니다.', | ||
}, | ||
error: { | ||
mismatch: '비밀번호가 일치하지 않습니다.', | ||
formatError: '8~20자 영문과 숫자를 사용하세요.', | ||
}, | ||
} as const; | ||
|
||
export const NAME_MSG = { | ||
success: {}, | ||
error: { | ||
formatError: '1~20자 한글, 영어만 가능합니다.', | ||
}, | ||
} as const; | ||
|
||
export const SEND_POINT_MSG = { | ||
success: {}, | ||
error: { | ||
overMaxValue: '보유 포인트보다 많은 포인트를 보낼 수 없습니다.', | ||
}, | ||
} as const; | ||
|
||
export const LOGIN_ID_MSG = { | ||
success: {}, | ||
error: { | ||
formatError: '4~12자 영어, 숫자, _ 만 가능합니다.', | ||
}, | ||
} as const; | ||
|
||
export const STUDY_MSG = { | ||
success: {}, | ||
error: { | ||
onlyGitLink: '깃허브 링크만 입력이 가능합니다.', | ||
}, | ||
} as const; | ||
|
||
export const BOARD_MSG = { | ||
success: {}, | ||
error: { | ||
requiredPassword: '작성자가 아니면 비밀번호가 필요합니다.', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.