Skip to content

Commit

Permalink
Fix svelte check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Nov 1, 2024
1 parent 920f3f4 commit 9a05e34
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/emails/welcome_email_html.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Simple Transactional Email</title>
<title>Welcome Email</title>
<style media="all" type="text/css">
@media all {
.btn-primary table td:hover {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(admin)/account/(menu)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
const adminSectionStore = writable("")
setContext("adminSection", adminSectionStore)
let adminSection: string = $state()
let adminSection: string | undefined = $state()
adminSectionStore.subscribe((value) => {
adminSection = value
})
Expand Down
10 changes: 9 additions & 1 deletion src/routes/(marketing)/contact_us/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
<script lang="ts">
import { enhance, applyAction } from "$app/forms"
import type { SubmitFunction } from "@sveltejs/kit"
import type { FullAutoFill } from "svelte/elements"
let errors: { [fieldName: string]: string } = $state({})
let loading = $state(false)
let showSuccess = $state(false)
const formFields = [
interface FormField {
id: string
label: string
inputType: string
autocomplete: FullAutoFill
}
const formFields: FormField[] = [
{
id: "first_name",
label: "First Name *",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"sourceMap": true,
"strict": true,
"types": ["vitest/globals"] // allows to skip import of test functions like `describe`, `it`, `expect`, etc.
}
},
"exclude": ["src/lib/emails/welcome_email_html.svelte"],
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
Expand Down

0 comments on commit 9a05e34

Please sign in to comment.