diff --git a/src/routes/profile/+page.svelte b/src/routes/profile/+page.svelte index 0b2ecc7e..3cc1fe29 100644 --- a/src/routes/profile/+page.svelte +++ b/src/routes/profile/+page.svelte @@ -25,25 +25,29 @@ switch (result.type) { case "success": toast.success("Subscription Cancelled successfully!", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "redirect": toast.success("Subscription Cancelled successfully!", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "failure": toast.error("Something went wrong.", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "error": toast.error(result.error.message, { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); break; default: @@ -67,25 +71,29 @@ switch (result.type) { case "success": toast.success("Subscription Reactivate successfully!", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "redirect": toast.success("Subscription Reactivate successfully!", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "failure": toast.error("Something went wrong.", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "error": toast.error(result.error.message, { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); break; default: @@ -109,25 +117,29 @@ switch (result.type) { case "success": toast.success("Changing to Annual Plan successfully!", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + 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!", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "failure": toast.error("Something went wrong.", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "error": toast.error(result.error.message, { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); break; default: @@ -151,7 +163,6 @@ nottifPermGranted = await requestNotificationPermission(); if (nottifPermGranted) { isPushSubscribed = (await checkSubscriptionStatus()) || false; - console.log(isPushSubscribed); } } }); @@ -161,7 +172,7 @@ isPushSubscribed = false; toast.success("Push notification deactivated successfully!", { style: - "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", // gray-600 hex color + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); } @@ -170,7 +181,7 @@ isPushSubscribed = true; toast.success("Push notification activated successfully!", { style: - "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", // gray-600 hex color + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); } @@ -257,25 +268,11 @@ on:click={handlePushSubscribe}>Enable notifications {/if} - - +
+ Review your settings and enable notifications to stay updated + with Stocknear alerts. +
{/if}