Skip to content

Commit 0ce9d10

Browse files
committed
lint and prettier
1 parent eb4c0a7 commit 0ce9d10

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

playground/components/nav/NavBar.vue

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const links = [
2525
<div class="flex">
2626
<NuxtLink
2727
v-for="link in links"
28+
:key="link.path"
2829
:href="link.path"
2930
class="px-4 pb-2 pt-4 hover:bg-gray-800"
3031
:class="activeClasses(link.path)"

playground/pages/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
validation and error handling.
1616
</p>
1717

18-
<NuxtLink to="/register-form">Register Form</NuxtLink>
18+
<NuxtLink to="/register">Register Form</NuxtLink>
1919

2020
<h2>Register Form with Precognition</h2>
2121

playground/pages/register-precog.vue

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<script setup lang="ts">
2-
const entries = ref([]);
3-
42
const form = usePrecognitionForm("post", "/api/register-precog", {
53
name: "",
64
email: "",

playground/server/api/registrations/index.get.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fakeDatabase from "~/server/utils/fakeDatabase";
22

3-
export default defineEventHandler(async (event) => {
3+
export default defineEventHandler(async () => {
44
// get the list of registrations from the database
55

66
return fakeDatabase;

0 commit comments

Comments
 (0)