From f248ce15c91846ab07c8802c973b9f269a66d06a Mon Sep 17 00:00:00 2001 From: Daniel Medina Date: Wed, 14 Jun 2023 21:30:13 +0200 Subject: [PATCH] :sparkles: Changed fonts and fixed issues with missing dependencies as well as legacy next.js elements --- .eslintrc.json | 3 + components/Navbar.tsx | 19 +- next.config.js | 3 +- package.json | 2 + pages/404.tsx | 4 - pages/500.tsx | 4 - pages/account.tsx | 1 + pages/api/create.ts | 13 +- pages/api/delete/[id].ts | 7 +- pages/api/get-user.ts | 5 +- pages/api/own-posts.ts | 16 +- pages/api/post/[id].ts | 4 +- pages/api/posts.ts | 16 +- pages/api/update-post.ts | 11 +- pages/api/update-user.ts | 31 +- pages/api/users.ts | 4 +- pages/create-post.tsx | 1 + pages/dashboard.tsx | 5 +- pages/edit/[id].tsx | 1 + pages/index.tsx | 1 + pages/signin.tsx | 3 +- pages/user/[id].tsx | 8 +- yarn.lock | 1622 +++++++++++++++++++++++++++++++++++++- 23 files changed, 1696 insertions(+), 88 deletions(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 227fa5a..12f5d28 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,37 +1,28 @@ +/* eslint-disable @next/next/no-img-element */ import React, { useEffect } from "react"; import Link from "next/link"; -import Head from "next/head"; -import styles from "../styles/fonts.module.css"; import { useSession } from "next-auth/react"; -import { useUserContext } from "../context/user"; const Navbar = () => { const { data: session, status } = useSession(); return (