This commit is contained in:
MuslemRahimi 2024-12-23 12:20:59 +01:00
parent e9a9b8fc11
commit b2b356d322
3 changed files with 19 additions and 4 deletions

View File

@ -10,6 +10,8 @@
let subscriptionData = data?.getSubscriptionData;
let isClicked = false;
const emailAddress = "support@stocknear.com";
const submitCancellation = () => {
return async ({ result, update }) => {
@ -237,7 +239,7 @@
{#if data?.user?.freeTrial === true}
Active
{:else}
{subscriptionData?.status_formatted ?? "Inactive"}
{subscriptionData?.status_formatted ?? "No Active Subscription"}
{/if}
</span>
</div>
@ -337,7 +339,11 @@
</div>
<div class="mt-2 mb-1">
<ul class="list-disc pl-5">
<li>Send an email to support@stocknear.com.</li>
<li>Send an email to <a
href={`mailto:${emailAddress}`}
class="text-blue-400 hover:text-white hover:underline"
>{emailAddress}</a
></li>
<li>
Join our official Subreddit
<a

View File

@ -0,0 +1,8 @@
import { redirect } from "@sveltejs/kit";
export const load = async ({ locals }) => {
const { pb } = locals;
if (pb.authStore.isValid) {
redirect(303, "/");
}
}

View File

@ -1,6 +1,5 @@
<script lang="ts">
import toast from "svelte-french-toast";
import Input from "$lib/components/Input.svelte";
import { pb } from "$lib/pocketbase";
import { goto } from "$app/navigation";
@ -24,6 +23,8 @@
);
}
}
</script>
<!-- HEADER FOR BETTER SEO -->
@ -60,7 +61,7 @@
<div class="w-full max-w-lg pt-2">
<button
type="submit"
class="btn bg-blue-600 hover:bg-blue-500 text-white w-full"
class="py-2.5 font-semibold rounded bg-white text-black w-full"
>
Request Password Reset
</button>