Effort to transition to TypeScript

Remove commit warnings
This commit is contained in:
Michał Gdula 2024-05-02 19:10:21 +01:00
parent 4f0ecd33e4
commit 1486c1b70a
18 changed files with 93 additions and 87 deletions

View file

@ -1,9 +1,9 @@
<script>
import { PaperPlaneRight, SealWarning, SealCheck } from "phosphor-svelte";
import DropDown from "%/components/DropDown.svelte";
import { postContactEmail } from "%/lib/test-api.ts";
import { expandOnTyping } from "%/lib/utils.js";
import { postContactEmail } from "../lib/test-api";
import { expandOnTyping } from "../lib/utils";
import DropDown from "../components/DropDown.svelte";
const minMessageLength = 150;
@ -27,7 +27,7 @@
messageValid = message.length > minMessageLength
}
function onSubmit(event) {
function onSubmit() {
formMessage = postContactEmail(name, email, message);
}
</script>
@ -117,7 +117,7 @@
</form>
<style lang="scss">
@import "%/styles/vars";
@import "../styles/vars";
#name, #email {
width: 300px;