aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)/support
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-07 21:16:25 -0800
committerAdam Soltys <[email protected]>2024-11-08 09:27:40 -0800
commit32fcc461cd43c8907df5e306d520bb671307eab1 (patch)
tree0253780c569998b6c1a5f43026586e94916c3fee /src/routes/(static)/support
parentbe5aa52cea1d57c875cfb22d25c6a866b8de2239 (diff)
downloadcoinos-ui-32fcc461cd43c8907df5e306d520bb671307eab1.tar.gz
coinos-ui-32fcc461cd43c8907df5e306d520bb671307eab1.zip
svelte 5
Diffstat (limited to 'src/routes/(static)/support')
-rw-r--r--src/routes/(static)/support/+page.svelte22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/routes/(static)/support/+page.svelte b/src/routes/(static)/support/+page.svelte
index 062f552b..b47c5c1a 100644
--- a/src/routes/(static)/support/+page.svelte
+++ b/src/routes/(static)/support/+page.svelte
@@ -1,4 +1,6 @@
<script>
+ import { run } from 'svelte/legacy';
+
import { browser } from "$app/environment";
import { onDestroy } from "svelte";
import { fail, success, post } from "$lib/utils";
@@ -6,16 +8,18 @@
import Icon from "$comp/Icon.svelte";
import { t } from "$lib/translations";
- export let data;
+ let { data = $bindable() } = $props();
let { user } = data;
- $: if (user) {
- data.subject = { ...user };
- }
+ run(() => {
+ if (user) {
+ data.subject = { ...user };
+ }
+ });
- let email;
- let message;
- let sent;
+ let email = $state();
+ let message = $state();
+ let sent = $state();
let recaptchaSiteKey = "6LfCd8YkAAAAANmVJgzN3SQY3n3fv1RhiS5PgMYM";
let submit = (e) => {
@@ -80,7 +84,7 @@
> and we'll do our best to get back to you in a timely manner.
</p>
- <form on:submit={submit}>
+ <form onsubmit={submit}>
<div class="mb-4">
<label for="account" class="font-semibold"
>{$t("user.support.accountName")}</label
@@ -110,7 +114,7 @@
name="message"
bind:value={message}
required
- />
+></textarea>
</div>
<button