From 62165ee353b0ce6f20d8998cadf3345614b80d2f Mon Sep 17 00:00:00 2001
From: Slouchwind <2241051890@qq.com>
Date: Mon, 17 Apr 2023 21:23:48 +0800
Subject: [PATCH] Fix the alt prop of
---
components/student.tsx | 7 ++++++-
pages/chat.tsx | 9 +++++----
pages/info.tsx | 9 +++++----
3 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/components/student.tsx b/components/student.tsx
index 2e7dd93..2e2f090 100644
--- a/components/student.tsx
+++ b/components/student.tsx
@@ -1,6 +1,7 @@
-import ItemStyles from '@/styles/Item.module.scss';
+import Image from 'next/image';
import { studentsJson } from './students/students';
import { getStudentInfo } from './students/infoStudents';
+import ItemStyles from '@/styles/Item.module.scss';
interface StudentProps {
id: number,
@@ -29,4 +30,8 @@ export default function Student({ id, allInfo, onClick, select, onError }: Stude
-
{info.file?.info}
-
@@ -171,7 +172,7 @@ export default function Info() {
-
+
所有学生
diff --git a/pages/info.tsx b/pages/info.tsx
index 54f4a58..1b112d0 100644
--- a/pages/info.tsx
+++ b/pages/info.tsx
@@ -1,7 +1,8 @@
//Components
+import Image from 'next/image';
import { NextSeo } from 'next-seo';
import MainNode from '@/components/main';
-import Student from '@/components/student';
+import Student, { AllStudentsIcon } from '@/components/student';
//Styles
import styles from '@/styles/Item.module.scss';
@@ -23,7 +24,7 @@ function Content({ id, allInfo }: ContentProps) {
return (
-
{info.file?.info}
-
@@ -70,7 +71,7 @@ export default function Info() {
-
+
所有学生