mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-23 04:19:48 +00:00
Change variable name
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
const INVALID_FORMAT_MSG = (field: string) => {
|
||||
const invalidFormatMsg = (field: string) => {
|
||||
return `Invalid ${field} format`;
|
||||
};
|
||||
|
||||
const ADD_SUCCESS = 'Add success';
|
||||
|
||||
const ERROR_MSG = (errorCode: number, msg: string) => {
|
||||
const errorMsg = (errorCode: number, msg: string) => {
|
||||
return `Error code: ${errorCode}. Message: ${msg}`;
|
||||
};
|
||||
|
||||
export { INVALID_FORMAT_MSG, ADD_SUCCESS, ERROR_MSG };
|
||||
export { invalidFormatMsg, ADD_SUCCESS, errorMsg };
|
||||
|
||||
Reference in New Issue
Block a user