From af2c5afa955a72afad97e9ca8f829410b6bfbd69 Mon Sep 17 00:00:00 2001
From: Alex Stan
Date: Sat, 1 Jun 2024 23:58:11 +0300
Subject: [PATCH] fixed a build error
Signed-off-by: Alex Stan
---
.eslintrc.json | 2 +-
app/{results/page.tsx => components/results.tsx} | 4 ++--
app/learn/[category]/page.tsx | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
rename app/{results/page.tsx => components/results.tsx} (98%)
diff --git a/.eslintrc.json b/.eslintrc.json
index e7ee5b0..1d431b4 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,7 +1,7 @@
{
"extends": "next/core-web-vitals",
"rules": {
- "react/no-undescaped-entities": "off",
+ "react/no-unescaped-entities": "off",
"react/jsx-key": "off"
}
}
diff --git a/app/results/page.tsx b/app/components/results.tsx
similarity index 98%
rename from app/results/page.tsx
rename to app/components/results.tsx
index 07d93fb..99932d8 100644
--- a/app/results/page.tsx
+++ b/app/components/results.tsx
@@ -1,5 +1,5 @@
import { CheckIcon, XMarkIcon, QuestionMarkCircleIcon, FingerPrintIcon, LockClosedIcon } from '@heroicons/react/24/outline'
-import Logo from '../components/logo';
+import Logo from './logo';
import { SessionState } from '../lib/session';
/*
@@ -62,7 +62,7 @@ const ResultScreen = ({state}: {state: SessionState}) => {
You did it!
Here are the results:
-
+
ultra@100.126.110.60
On this page you can see what you did at the quiz. We'll give your wrong questions again, another time!
diff --git a/app/learn/[category]/page.tsx b/app/learn/[category]/page.tsx
index 5b2939a..07a4dd8 100644
--- a/app/learn/[category]/page.tsx
+++ b/app/learn/[category]/page.tsx
@@ -7,7 +7,7 @@ import { CheckIcon } from '@heroicons/react/20/solid';
import { SessionState } from '@/app/lib/session';
import { AnswerType, Question, getQuestions } from '@/app/lib/question';
import QuestionView from '@/app/components/question_component';
-import ResultScreen from '@/app/results/page';
+import ResultScreen from '@/app/components/results';
const Page = ({ params }: { params: { category: string }}) => {