updated days

This commit is contained in:
2022-03-28 13:00:41 +01:00
parent edc5bdbe7c
commit dca4777b4c
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"start": "next build && next start",
"lint": "next lint"
},
"dependencies": {
+10 -7
View File
@@ -9,13 +9,16 @@ const FourOhFour = (props) => {
const router = useRouter();
let numbDays = router.query.n;
useEffect(() => {
console.log("hello");
return axios.get("/api/days/99");
});
return <div>done</div>;
return (
<div>
<Image
src={"/api/days/" + numbDays}
width="940"
height="788"
alt="sleeps"
/>
</div>
);
};
export default FourOhFour;