Skip to content

Commit a8724de

Browse files
author
Chris
committed
fixing lint errors
1 parent 2a05bab commit a8724de

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

quiz-app/src/components/Quiz.vue quiz-app/src/components/QuizComponent.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
8888
8989
export default {
90-
name: "Quiz",
90+
name: "QuizComponent",
9191
data() {
9292
return {
9393
currentQuestion: 0,

quiz-app/src/components/Quizzes.vue quiz-app/src/components/QuizzesComponent.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
</style>
1010
<template>
11-
<div class="question" v-for="q in questions">
11+
<div class="question" v-for="q in questions" :key="q.id" >
1212
<router-link
1313

1414
:key="q.id"
@@ -43,7 +43,7 @@
4343
let locale = navigator.language || navigator.userLanguage;
4444
4545
export default {
46-
name: "Home",
46+
name: "QuizzesComponent",
4747
data() {
4848
return {
4949
file: getFileByLocale(locale),

quiz-app/src/router/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createRouter, createWebHistory } from 'vue-router'
22
import HomeView from '../views/HomeView.vue'
3-
import Quiz from '@/components/Quiz.vue'
3+
import QuizComponent from '@/components/QuizComponent.vue'
44

55
const router = createRouter({
66
history: createWebHistory(import.meta.env.BASE_URL),
@@ -13,7 +13,7 @@ const router = createRouter({
1313
{
1414
path: '/quiz/:id',
1515
name: 'quiz-detail',
16-
component: Quiz
16+
component: QuizComponent
1717
},
1818
{
1919
path: '/about',

quiz-app/src/views/HomeView.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup>
2-
import Quizzes from '@/components/Quizzes.vue';
2+
import QuizzesComponent from '@/components/QuizzesComponent.vue';
33
</script>
44

55
<template>
66
<main>
7-
<Quizzes />
7+
<QuizzesComponent />
88
</main>
99
</template>

0 commit comments

Comments
 (0)