Skip to content

Commit

Permalink
Fixed various linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Oct 29, 2024
1 parent 5d04f36 commit 808de95
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/routes/[network]/(account)/signup/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script lang="ts" context="module">
<script lang="ts" module>
export interface SignupStep {
title: string;
path: string;
Expand Down
6 changes: 2 additions & 4 deletions src/routes/[network]/(account)/signup/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
const currentEnvironment = detectEnvironment();
const currentWalletType = walletTypes[currentEnvironment];
const WalletComponent = currentWalletType.icon;
const currentWalletTypePath = `/${data.network}/signup/wallets/${currentWalletType.type}`;
const recommendedWallet = currentWalletType.wallets[0];
</script>
Expand All @@ -28,10 +29,7 @@
hover:bg-mineShaft-950 focus-visible:outline focus-visible:outline-transparent focus-visible:ring-2 focus-visible:ring-solar-500"
>
<div class="rounded-full bg-mineShaft-900/60 p-3">
<svelte:component
this={currentWalletType.icon}
class="size-6 group-hover:stroke-skyBlue-500 "
/>
<WalletComponent class="size-6 group-hover:stroke-skyBlue-500 " />
</div>
<div class="space-y-1">
<h4 class="text-xl font-semibold">
Expand Down
3 changes: 2 additions & 1 deletion src/routes/[network]/(account)/signup/wallets/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
</script>

{#snippet walletButton(wallet: WalletType)}
{@const WalletIcon = wallet.icon}
<a
href="/{data.network}/signup/wallets/{wallet.type}"
class="group grid grid-cols-[auto_1fr_auto] items-center gap-4 rounded-2xl border border-white/20 p-4
hover:bg-mineShaft-950 focus-visible:outline focus-visible:outline-transparent focus-visible:ring-2 focus-visible:ring-solar-500"
>
<div class="rounded-full bg-mineShaft-900/60 p-3">
<svelte:component this={wallet.icon} class="size-6 group-hover:stroke-skyBlue-500 " />
<WalletIcon class="size-6 group-hover:stroke-skyBlue-500 " />
</div>
<div class="space-y-1">
<h4 class="text-xl font-semibold">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts">
import { page } from '$app/stores';
import { Stack } from '$lib/components/layout';
import PillGroup from '$lib/components/navigation/pillgroup.svelte';
import Pageheader from '$lib/components/pageheader.svelte';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import Self from './fields.svelte';
import Checkbox from '$lib/components/input/checkbox.svelte';
import Label from '$lib/components/input/label.svelte';
import Textinput from '$lib/components/input/text.svelte';
Expand Down Expand Up @@ -26,7 +27,7 @@
{#each fields as field}
{@const subfields = deriveFields(field.type)}
{#if subfields.length > 0}
<svelte:self {abi} codePath={[...codePath, field.name]} fields={subfields} {state} />
<Self {abi} codePath={[...codePath, field.name]} fields={subfields} {state} />
{:else}
{@const fieldName = [...codePath, field.name].join('->')}
<fieldset class="grid gap-2">
Expand Down

0 comments on commit 808de95

Please sign in to comment.