chore: lint

This commit is contained in:
Bereket Engida
2024-09-29 09:34:28 +03:00
parent e4731e41b8
commit a50239aecd
7 changed files with 51 additions and 53 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { forgetPassword } from "~/lib/auth-client.js" import { forgetPassword } from "~/lib/auth-client.js";
const email = ref("") const email = ref("");
const handleForgetPassword = async () => { const handleForgetPassword = async () => {
if (!email.value) { if (!email.value) {
@@ -22,9 +22,9 @@ const handleForgetPassword = async () => {
onError(context) { onError(context) {
alert(context.error.message); alert(context.error.message);
}, },
} },
); );
} };
</script> </script>

View File

@@ -20,8 +20,8 @@ const handleResetPassword = async () => {
alert(context.error.message); alert(context.error.message);
}, },
}, },
}) });
} };
</script> </script>
<template> <template>

View File

@@ -14,7 +14,7 @@ import { signIn } from "~/lib/auth-client.js";
const email = ref(""); const email = ref("");
const password = ref(""); const password = ref("");
const handleSignIn = async() => { const handleSignIn = async () => {
await signIn.email( await signIn.email(
{ {
email: email.value, email: email.value,
@@ -27,9 +27,7 @@ const handleSignIn = async() => {
}, },
}, },
); );
};
}
</script> </script>
<template> <template>

View File

@@ -1,10 +1,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import { signUp } from "~/lib/auth-client.js" import { signUp } from "~/lib/auth-client.js";
const firstName = ref("") const firstName = ref("");
const lastName = ref("") const lastName = ref("");
const email = ref("") const email = ref("");
const password = ref("") const password = ref("");
const handleSignUp = async () => { const handleSignUp = async () => {
const user = { const user = {
@@ -21,10 +21,10 @@ const handleSignUp = async () => {
fetchOptions: { fetchOptions: {
onError(context) { onError(context) {
alert(context.error.message); alert(context.error.message);
} },
} },
}) });
} };
</script> </script>
<template> <template>