mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 21:51:29 +08:00
remove fullstops from alerts (#3245) devkennyy
* test
* Revert "test"
This reverts commit c1d05d50b1.
* remove fullstops
* remove fullstops
* more punctuation
This commit is contained in:
parent
da26618f58
commit
ffa1f6f7de
3 changed files with 8 additions and 8 deletions
|
|
@ -157,7 +157,7 @@ function apply(): void {
|
|||
!CustomText.isWordRandom
|
||||
) {
|
||||
Notifications.add(
|
||||
"You need to specify word count or time in seconds to start a random custom test.",
|
||||
"You need to specify word count or time in seconds to start a random custom test",
|
||||
0,
|
||||
5
|
||||
);
|
||||
|
|
@ -170,7 +170,7 @@ function apply(): void {
|
|||
CustomText.isWordRandom
|
||||
) {
|
||||
Notifications.add(
|
||||
"You need to pick between word count or time in seconds to start a random custom test.",
|
||||
"You need to pick between word count or time in seconds to start a random custom test",
|
||||
0,
|
||||
5
|
||||
);
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ export async function hide(): Promise<void> {
|
|||
async function submitReport(): Promise<void> {
|
||||
const captchaResponse = CaptchaController.getResponse("quoteReportPopup");
|
||||
if (!captchaResponse) {
|
||||
return Notifications.add("Please complete the captcha.");
|
||||
return Notifications.add("Please complete the captcha");
|
||||
}
|
||||
|
||||
const quoteId = state.quoteToReport?.id.toString();
|
||||
|
|
@ -99,17 +99,17 @@ async function submitReport(): Promise<void> {
|
|||
const captcha = captchaResponse as string;
|
||||
|
||||
if (!quoteId) {
|
||||
return Notifications.add("Please select a quote.");
|
||||
return Notifications.add("Please select a quote");
|
||||
}
|
||||
|
||||
if (!reason) {
|
||||
return Notifications.add("Please select a valid report reason.");
|
||||
return Notifications.add("Please select a valid report reason");
|
||||
}
|
||||
|
||||
const characterDifference = comment.length - 250;
|
||||
if (characterDifference > 0) {
|
||||
return Notifications.add(
|
||||
`Report comment is ${characterDifference} character(s) too long.`
|
||||
`Report comment is ${characterDifference} character(s) too long`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -739,7 +739,7 @@ list["applyCustomFont"] = new SimplePopup(
|
|||
"text",
|
||||
"Custom font",
|
||||
[{ placeholder: "Font name", initVal: "" }],
|
||||
"Make sure you have the font installed on your computer before applying.",
|
||||
"Make sure you have the font installed on your computer before applying",
|
||||
"Apply",
|
||||
(_thisPopup, fontName: string) => {
|
||||
if (fontName === "") return;
|
||||
|
|
@ -1071,7 +1071,7 @@ list["updateCustomTheme"] = new SimplePopup(
|
|||
(t) => t._id === _thisPopup.parameters[0]
|
||||
);
|
||||
if (customTheme === undefined) {
|
||||
Notifications.add("Custom theme does not exist!", -1);
|
||||
Notifications.add("Custom theme does not exist", -1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue