From e3889b79daadb7703350661bfbec1326c4347ed8 Mon Sep 17 00:00:00 2001 From: Aaron Cox Date: Fri, 6 Dec 2024 09:57:23 -0800 Subject: [PATCH] Linting --- src/lib/components/input/publickey.svelte | 2 +- src/routes/[network]/(account)/create-account/+page.svelte | 2 +- src/routes/[network]/(account)/create-account/+page.ts | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/components/input/publickey.svelte b/src/lib/components/input/publickey.svelte index b7f6688f4..587a452b1 100644 --- a/src/lib/components/input/publickey.svelte +++ b/src/lib/components/input/publickey.svelte @@ -3,7 +3,7 @@ import type { ComponentProps } from 'svelte'; import TextInput from './text.svelte'; - interface PublicKeyInputProps extends ComponentProps { + interface PublicKeyInputProps extends ComponentProps { valid?: boolean; value: PublicKey | undefined; debug?: boolean; diff --git a/src/routes/[network]/(account)/create-account/+page.svelte b/src/routes/[network]/(account)/create-account/+page.svelte index 25d849993..82261790d 100644 --- a/src/routes/[network]/(account)/create-account/+page.svelte +++ b/src/routes/[network]/(account)/create-account/+page.svelte @@ -27,7 +27,7 @@ let accountValid = $state(false); let accountName: Name = $state(Name.from('')); - let publicKeyInput: TextInput | undefined = $state(); + let publicKeyInput: PublicKeyInput | undefined = $state(); let publicKeyRef: HTMLInputElement | undefined = $state(); let publicKeyValid = $state(false); let publicKey: PublicKey | undefined = $state(); diff --git a/src/routes/[network]/(account)/create-account/+page.ts b/src/routes/[network]/(account)/create-account/+page.ts index 38b9f11d8..98d4c763f 100644 --- a/src/routes/[network]/(account)/create-account/+page.ts +++ b/src/routes/[network]/(account)/create-account/+page.ts @@ -1,8 +1,6 @@ import type { PageLoad } from './$types'; -import * as m from '$lib/paraglide/messages'; -export const load: PageLoad = async ({ parent }) => { - const { network } = await parent(); +export const load: PageLoad = async () => { return { title: 'Create Account', subtitle: 'Create an account using a token transfer',