added iimages

This commit is contained in:
2022-03-21 07:08:05 +00:00
parent 2d53141f42
commit de86f086eb
789 changed files with 24 additions and 14 deletions
+9 -10
View File
@@ -2,21 +2,20 @@
import Image from "next/image";
import { useRouter } from "next/router";
import { useState, useEffect, useRef } from "react";
import axios from "axios";
const FourOhFour = (props) => {
const router = useRouter();
let numbDays = router.query.n;
return (
<div>
<Image
src={"/api/days/" + numbDays}
width="940"
height="788"
alt="days"
/>
</div>
);
useEffect(() => {
console.log("hello");
return axios.get("/api/days/99");
});
return <div>done</div>;
};
export default FourOhFour;