diff --git a/src/lib/components/Feedback.svelte b/src/lib/components/Feedback.svelte
index e47915c2..61605347 100644
--- a/src/lib/components/Feedback.svelte
+++ b/src/lib/components/Feedback.svelte
@@ -39,12 +39,18 @@
async function sendFeedback() {
if (inputValue?.length === 0) {
- toast.error("Please enter your feedback");
+ toast.error("Please enter your feedback", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
if (rating?.length === 0 && category === "general") {
- toast.error("Please select an emoji");
+ toast.error("Please select an emoji", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
@@ -68,7 +74,10 @@
body: JSON.stringify(postData),
});
- toast.success("Thank you for your feedback");
+ toast.success("Thank you for your feedback", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
rating = "";
inputValue = "";
diff --git a/src/lib/components/LoginPopup.svelte b/src/lib/components/LoginPopup.svelte
index 21c23b57..cf73af36 100644
--- a/src/lib/components/LoginPopup.svelte
+++ b/src/lib/components/LoginPopup.svelte
@@ -19,15 +19,24 @@
case "success":
case "redirect":
isClicked = true;
- toast.success("Login successfully!");
+ toast.success("Login successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "failure":
- toast.error("Invalid credentials");
+ toast.error("Invalid credentials", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "error":
- toast.error(result.error.message);
+ toast.error(result.error.message, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
break;
default:
await update();
@@ -57,15 +66,24 @@
case "success":
case "redirect":
isClicked = true;
- toast.success("Registration successfully!");
+ toast.success("Registration successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "failure":
- toast.error("Invalid credentials");
+ toast.error("Invalid credentials", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "error":
- toast.error(result.error.message);
+ toast.error(result.error.message, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
break;
default:
await update();
diff --git a/src/lib/components/PriceAlert.svelte b/src/lib/components/PriceAlert.svelte
index c100c3f1..e12b36b5 100644
--- a/src/lib/components/PriceAlert.svelte
+++ b/src/lib/components/PriceAlert.svelte
@@ -18,7 +18,10 @@
async function handleCreateAlert() {
// Validate input locally.
if (targetPrice < 0) {
- toast.error("Target Price must be above zero");
+ toast.error("Target Price must be above zero", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
@@ -54,18 +57,13 @@
});
// Use toast.promise to handle pending, success, and error states.
- toast.promise(
- promise,
- {
- loading: "Creating price alert...",
- success: "Successfully created price alert",
- error: (err) => err.message || "Failed to create price alert",
- },
- {
- style:
- "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
- },
- );
+ toast.promise(promise, {
+ loading: "Creating price alert...",
+ success: "Successfully created price alert",
+ error: (err) => err.message || "Failed to create price alert",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
// Await the promise and handle the result.
try {
diff --git a/src/lib/components/Share.svelte b/src/lib/components/Share.svelte
index cbc20602..550d6b99 100644
--- a/src/lib/components/Share.svelte
+++ b/src/lib/components/Share.svelte
@@ -13,8 +13,9 @@
.then(() => console.log("Content shared successfully."))
.catch((error) => console.log("Error sharing content:", error));
} else {
- toast.error("Sharing is not supported by your device", {
- style: "background: #2A2E39; color: #fff;",
+ toast?.error("Sharing is not supported by your device", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
}
}
diff --git a/src/lib/components/Table/OptionsFlowTable.svelte b/src/lib/components/Table/OptionsFlowTable.svelte
index 657ce279..8dfef0a0 100644
--- a/src/lib/components/Table/OptionsFlowTable.svelte
+++ b/src/lib/components/Table/OptionsFlowTable.svelte
@@ -93,7 +93,10 @@
// Handle the error appropriately (e.g., show an error message to the user)
}
} else {
- toast.error("Only for Pro Members");
+ toast.error("Only for Pro Members", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
}
diff --git a/src/lib/components/Table/Table.svelte b/src/lib/components/Table/Table.svelte
index 4d63ebe5..5ed80c69 100644
--- a/src/lib/components/Table/Table.svelte
+++ b/src/lib/components/Table/Table.svelte
@@ -269,7 +269,8 @@
saveRules();
} else {
toast.error("Only for Pro Members", {
- style: "border-radius: 200px; background: #2A2E39; color: #fff;",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
}
}
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index ee77a92b..2e06ff95 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1193,7 +1193,7 @@
-->
-
+
{#if Cookie && $showCookieConsent === true}
{/if}
diff --git a/src/routes/dark-pool-flow/+page.svelte b/src/routes/dark-pool-flow/+page.svelte
index f90b9a03..ead3a932 100644
--- a/src/routes/dark-pool-flow/+page.svelte
+++ b/src/routes/dark-pool-flow/+page.svelte
@@ -163,7 +163,8 @@
function handleAddRule() {
if (ruleName === "") {
toast.error("Please select a rule", {
- style: "border-radius: 200px; background: #2A2E39; color: #fff;",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
return;
}
@@ -220,11 +221,6 @@
}
} else {
ruleOfList = [...ruleOfList, newRule];
- /*
- toast.success('Rule added', {
- style: 'border-radius: 200px; background: #2A2E39; color: #fff;'
- });
- */
shouldLoadWorker.set(true);
}
@@ -444,7 +440,8 @@
}
} else {
toast.error(`Market is closed`, {
- style: "border-radius: 200px; background: #2A2E39; color: #fff;",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
}
}
diff --git a/src/routes/etf/[tickerID]/+layout.svelte b/src/routes/etf/[tickerID]/+layout.svelte
index adbc454e..e9eaad35 100644
--- a/src/routes/etf/[tickerID]/+layout.svelte
+++ b/src/routes/etf/[tickerID]/+layout.svelte
@@ -58,7 +58,8 @@
?.catch((error) => console.log("Error sharing content:", error));
} else {
toast.error("Sharing is not supported by your device", {
- style: "background: #2A2E39; color: #fff;",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
}
}
diff --git a/src/routes/heatmap/+page.svelte b/src/routes/heatmap/+page.svelte
index c226bffb..4479070b 100644
--- a/src/routes/heatmap/+page.svelte
+++ b/src/routes/heatmap/+page.svelte
@@ -64,7 +64,10 @@
isLoaded = true;
} catch (error) {
console.error("Error loading heatmap:", error);
- toast.error("Failed to load heatmap. Please try again.");
+ toast.error("Failed to load heatmap. Please try again.", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
} finally {
isLoading = false;
}
diff --git a/src/routes/index/[tickerID]/+layout.svelte b/src/routes/index/[tickerID]/+layout.svelte
index fef536c4..3fc41557 100644
--- a/src/routes/index/[tickerID]/+layout.svelte
+++ b/src/routes/index/[tickerID]/+layout.svelte
@@ -61,7 +61,8 @@
?.catch((error) => console.log("Error sharing content:", error));
} else {
toast.error("Sharing is not supported by your device", {
- style: "background: #2A2E39; color: #fff;",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
}
}
diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte
index 34ba0a90..046024e3 100644
--- a/src/routes/login/+page.svelte
+++ b/src/routes/login/+page.svelte
@@ -24,21 +24,33 @@
break;
} else form?.notVerified === false;
{
- toast.success("Login successfully!");
+ toast.success("Login successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
}
case "redirect":
isClicked = true;
- toast.success("Login successfully!");
+ toast.success("Login successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "failure":
- toast.error("Invalid credentials");
+ toast.error("Invalid credentials", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "error":
- toast.error(result.error.message);
+ toast.error(result.error.message, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
break;
default:
await update();
diff --git a/src/routes/options-flow/+page.svelte b/src/routes/options-flow/+page.svelte
index 7b46c4b2..4244e925 100644
--- a/src/routes/options-flow/+page.svelte
+++ b/src/routes/options-flow/+page.svelte
@@ -229,7 +229,10 @@
function handleAddRule() {
if (ruleName === "") {
- toast.error("Please select a rule");
+ toast.error("Please select a rule", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
@@ -508,7 +511,10 @@
shouldLoadWorker.set(true);
}
} else {
- toast.error(`Market is closed`);
+ toast.error(`Market is closed`, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
}
@@ -773,7 +779,10 @@
}
}
} else {
- toast.error("Only for Pro Members");
+ toast.error("Only for Pro Members", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
};
diff --git a/src/routes/price-alert/+page.svelte b/src/routes/price-alert/+page.svelte
index 9b230fc9..8d86cfe2 100644
--- a/src/routes/price-alert/+page.svelte
+++ b/src/routes/price-alert/+page.svelte
@@ -83,9 +83,15 @@
async function handleDeleteTickers() {
if (numberOfChecked === 0) {
- toast.error(`You need to select symbols before you can delete them`);
+ toast.error(`You need to select symbols before you can delete them`, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
} else {
- toast.success(`Price alerts deleted successfully`);
+ toast.success(`Price alerts deleted successfully`, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
const symbolsToDelete = priceAlertList
?.filter((item) => deletePriceAlertList.includes(item.id))
diff --git a/src/routes/pricing/+page.svelte b/src/routes/pricing/+page.svelte
index 4314228e..83d55f84 100644
--- a/src/routes/pricing/+page.svelte
+++ b/src/routes/pricing/+page.svelte
@@ -412,7 +412,7 @@
class="w-28 transform ease-in-out duration-300"
style="transform: rotate(23deg);"
loading="lazy"
- alt="pro tier"
+ alt="Pro tier Logo"
/>
Pro Tier
@@ -680,6 +680,34 @@
>Realtime Dark Pool Data
+
+
+
+ Priority Support
+
@@ -748,7 +776,7 @@
{/if}
-
+
30 Day Money Back Guarantee
diff --git a/src/routes/profile/+page.svelte b/src/routes/profile/+page.svelte
index 1dce5113..16d83061 100644
--- a/src/routes/profile/+page.svelte
+++ b/src/routes/profile/+page.svelte
@@ -38,19 +38,31 @@
return async ({ result, update }) => {
switch (result.type) {
case "success":
- toast.success("Subscription Cancelled successfully!");
+ toast.success("Subscription Cancelled successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "redirect":
- toast.success("Subscription Cancelled successfully!");
+ toast.success("Subscription Cancelled successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "failure":
- toast.error("Something went wrong.");
+ toast.error("Something went wrong.", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "error":
- toast.error(result.error.message);
+ toast.error(result.error.message, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
break;
default:
await update();
@@ -72,19 +84,31 @@
return async ({ result, update }) => {
switch (result.type) {
case "success":
- toast.success("Subscription Reactivate successfully!");
+ toast.success("Subscription Reactivate successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "redirect":
- toast.success("Subscription Reactivate successfully!");
+ toast.success("Subscription Reactivate successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "failure":
- toast.error("Something went wrong.");
+ toast.error("Something went wrong.", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "error":
- toast.error(result.error.message);
+ toast.error(result.error.message, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
break;
default:
await update();
@@ -106,19 +130,31 @@
return async ({ result, update }) => {
switch (result.type) {
case "success":
- toast.success("Changing to Annual Plan successfully!");
+ toast.success("Changing to Annual Plan successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "redirect":
- toast.success("Changing to Annual Plan successfully!");
+ toast.success("Changing to Annual Plan successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "failure":
- toast.error("Something went wrong.");
+ toast.error("Something went wrong.", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "error":
- toast.error(result.error.message);
+ toast.error(result.error.message, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
break;
default:
await update();
@@ -161,9 +197,15 @@
const output = await subscribeUser();
if (output?.success === true) {
isPushSubscribed = true;
- toast.success("Push notification activated successfully!");
+ toast.success("Push notification activated successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
} else {
- toast.error("Your browser does not support push notifications...");
+ toast.error("Your browser does not support push notifications...", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
loading = false;
}
diff --git a/src/routes/register/+page.svelte b/src/routes/register/+page.svelte
index 97026159..3fcd3784 100644
--- a/src/routes/register/+page.svelte
+++ b/src/routes/register/+page.svelte
@@ -17,15 +17,24 @@
case "success":
case "redirect":
isClicked = true;
- toast.success("Registration successfully!");
+ toast.success("Registration successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "failure":
- toast.error("Invalid credentials");
+ toast.error("Invalid credentials", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
await update();
break;
case "error":
- toast.error(result.error.message);
+ toast.error(result.error.message, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
break;
default:
await update();
diff --git a/src/routes/reset-password/+page.svelte b/src/routes/reset-password/+page.svelte
index 2de37a5d..ff377596 100644
--- a/src/routes/reset-password/+page.svelte
+++ b/src/routes/reset-password/+page.svelte
@@ -12,16 +12,16 @@
event.preventDefault();
try {
await pb.collection("users").requestPasswordReset(email);
- toast.success("Password resetted. Check your emails!");
+ toast.success("Password resetted. Check your emails!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
goto("/login");
} catch (err) {
- toast.error(
- { err },
- {
- style:
- "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
- },
- );
+ toast.error(err, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
}
diff --git a/src/routes/stock-screener/+page.svelte b/src/routes/stock-screener/+page.svelte
index 394d4d7e..954f7ab7 100644
--- a/src/routes/stock-screener/+page.svelte
+++ b/src/routes/stock-screener/+page.svelte
@@ -1493,7 +1493,10 @@
const output = await response.json();
if (output === "success") {
- toast.success("Strategy deleted successfully!");
+ toast.success("Strategy deleted successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
strategyList =
strategyList?.filter((item) => item?.id !== selectedStrategy) ?? [];
@@ -1528,7 +1531,10 @@
?.map((rule) => [rule.name, new Set(rule.value)]), // Create Map from filtered rules
);
} else if (output === "failure") {
- toast.error("Something went wrong. Please try again");
+ toast.error("Something went wrong. Please try again", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
}
@@ -1542,12 +1548,18 @@
const title = formData.get("title");
if (!title || title.length === 0) {
- toast.error("Title cannot be empty!");
+ toast.error("Title cannot be empty!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
if (title?.length > 100) {
- toast.error("Title is too long. Keep it simple and concise bruv!");
+ toast.error("Title is too long. Keep it simple and concise bruv!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
@@ -1568,7 +1580,10 @@
const output = await response?.json();
if (output?.id && output?.id?.length !== 0) {
- toast.success("Strategy created successfully!");
+ toast.success("Strategy created successfully!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
const closePopup = document.getElementById("addStrategy");
closePopup?.dispatchEvent(new MouseEvent("click"));
@@ -1579,7 +1594,10 @@
strategyList?.unshift(output);
selectedPopularStrategy = "";
} else {
- toast.error("Something went wrong. Please try again later!");
+ toast.error("Something went wrong. Please try again later!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
return output;
@@ -1692,7 +1710,10 @@
function handleAddRule() {
if (ruleName === "") {
- toast.error("Please select a rule");
+ toast.error("Please select a rule", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
@@ -1904,7 +1925,10 @@ const handleKeyDown = (event) => {
});
if (printToast === true) {
- toast.success("Strategy saved!");
+ toast.success("Strategy saved!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
//isSaved = true;
diff --git a/src/routes/stocks/[tickerID]/+layout.svelte b/src/routes/stocks/[tickerID]/+layout.svelte
index 87c65586..de221972 100644
--- a/src/routes/stocks/[tickerID]/+layout.svelte
+++ b/src/routes/stocks/[tickerID]/+layout.svelte
@@ -63,7 +63,8 @@
?.catch((error) => console.log("Error sharing content:", error));
} else {
toast.error("Sharing is not supported by your device", {
- style: "background: #2A2E39; color: #fff;",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
}
}
diff --git a/src/routes/update-password/+page.svelte b/src/routes/update-password/+page.svelte
index 86c70a42..98cf24e2 100644
--- a/src/routes/update-password/+page.svelte
+++ b/src/routes/update-password/+page.svelte
@@ -50,14 +50,16 @@
?.message ?? "";
toast.error("Invalid credentials", {
- style: "border-radius: 200px; background: #2A2E39; color: #fff;",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
} else {
// Handle other errors
console.error("Unexpected error during registration:", error);
toast.error("An unexpected error occurred", {
- style: "border-radius: 200px; background: #2A2E39; color: #fff;",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
}
}
diff --git a/src/routes/watchlist/options/+page.svelte b/src/routes/watchlist/options/+page.svelte
index 34aa83be..be08d130 100644
--- a/src/routes/watchlist/options/+page.svelte
+++ b/src/routes/watchlist/options/+page.svelte
@@ -88,9 +88,15 @@
async function handleDelete() {
if (numberOfChecked === 0) {
- toast.error(`You need to select symbols before you can delete them`);
+ toast.error(`You need to select symbols before you can delete them`, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
} else if (data?.getOptionsWatchlist?.id?.length === 0) {
- toast.error(`You need to select symbols before you can delete them`);
+ toast.error(`You need to select symbols before you can delete them`, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
} else {
optionsWatchlist = optionsWatchlist?.filter(
(item) => !deleteOptionsId?.includes(item?.id),
diff --git a/src/routes/watchlist/stocks/+page.svelte b/src/routes/watchlist/stocks/+page.svelte
index 734bdae7..ea3e878a 100644
--- a/src/routes/watchlist/stocks/+page.svelte
+++ b/src/routes/watchlist/stocks/+page.svelte
@@ -297,12 +297,18 @@
// Validate the title input
if (!title || title.toString().trim().length === 0) {
- toast.error("Title cannot be empty!");
+ toast.error("Title cannot be empty!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
if (title.toString().length > 100) {
- toast.error("Title is too long. Keep it simple and concise bruv!");
+ toast.error("Title is too long. Keep it simple and concise bruv!", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
return;
}
@@ -408,7 +414,10 @@
}
} catch (error) {
console.error("Error:", error);
- toast.error("An error occurred. Please try again later.");
+ toast.error("An error occurred. Please try again later.", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
}
@@ -437,7 +446,10 @@
async function handleDeleteTickers() {
if (numberOfChecked === 0) {
- toast.error(`You need to select symbols before you can delete them`);
+ toast.error(`You need to select symbols before you can delete them`, {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
} else {
watchList = watchList?.filter(
(item) => !deleteTickerList?.includes(item?.symbol),
@@ -501,7 +513,10 @@
async function handleAddTicker(event, ticker) {
// Check if the ticker is already in the watchlist.
if (watchList?.some((item) => item?.symbol === ticker)) {
- toast.error("This symbol is already in your watchlist");
+ toast.error("This symbol is already in your watchlist", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
inputValue = "";
return;
}
@@ -536,6 +551,8 @@
loading: "Updating watchlist...",
success: "Watchlist updated successfully!",
error: (err) => err.message || "Failed to update watchlist",
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
});
try {
@@ -594,7 +611,10 @@
saveRules();
} else {
- toast.error("Only for Pro Members");
+ toast.error("Only for Pro Members", {
+ style:
+ "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
+ });
}
}