feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass
This commit is contained in:
@@ -61,7 +61,7 @@ export const editProfile = protectedServerActionProcedure
|
||||
message: issue.message,
|
||||
})),
|
||||
message: intl.formatMessage({
|
||||
id: "An error occured when trying to update profile.",
|
||||
defaultMessage: "An error occured when trying to update profile.",
|
||||
}),
|
||||
status: Status.error,
|
||||
}
|
||||
@@ -81,7 +81,7 @@ export const editProfile = protectedServerActionProcedure
|
||||
data: input,
|
||||
issues: [],
|
||||
message: intl.formatMessage({
|
||||
id: "An error occured when trying to update profile.",
|
||||
defaultMessage: "An error occured when trying to update profile.",
|
||||
}),
|
||||
status: Status.error,
|
||||
}
|
||||
@@ -137,7 +137,9 @@ export const editProfile = protectedServerActionProcedure
|
||||
if (Object.keys(body).length === 0) {
|
||||
return {
|
||||
data: input,
|
||||
message: intl.formatMessage({ id: "Successfully updated profile!" }),
|
||||
message: intl.formatMessage({
|
||||
defaultMessage: "Successfully updated profile!",
|
||||
}),
|
||||
status: Status.success,
|
||||
}
|
||||
} else {
|
||||
@@ -172,7 +174,7 @@ export const editProfile = protectedServerActionProcedure
|
||||
data: input,
|
||||
issues: [],
|
||||
message: intl.formatMessage({
|
||||
id: "An error occured when trying to update profile.",
|
||||
defaultMessage: "An error occured when trying to update profile.",
|
||||
}),
|
||||
status: Status.error,
|
||||
}
|
||||
@@ -208,7 +210,7 @@ export const editProfile = protectedServerActionProcedure
|
||||
message: issue.message,
|
||||
})),
|
||||
message: intl.formatMessage({
|
||||
id: "An error occured when trying to update profile.",
|
||||
defaultMessage: "An error occured when trying to update profile.",
|
||||
}),
|
||||
status: Status.error,
|
||||
}
|
||||
@@ -216,7 +218,9 @@ export const editProfile = protectedServerActionProcedure
|
||||
|
||||
return {
|
||||
data: validatedData.data,
|
||||
message: intl.formatMessage({ id: "Successfully updated profile!" }),
|
||||
message: intl.formatMessage({
|
||||
defaultMessage: "Successfully updated profile!",
|
||||
}),
|
||||
status: Status.success,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user