Remove next image

This commit is contained in:
Atridad Lahiji 2023-11-19 16:50:29 -07:00
parent b0013558ca
commit fdfc8ffc49
No known key found for this signature in database
4 changed files with 67 additions and 70 deletions

View file

@ -1,7 +1,6 @@
"use client";
import { EventTypes } from "@/_utils/types";
import Image from "next/image";
import { useEffect, useState } from "react";
import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query";
@ -358,7 +357,7 @@ const VoteUI = () => {
className="flex flex-row items-center justify-center gap-2"
>
<div className="w-10 rounded-full avatar">
<Image
<img
src={presenceItem.data.image}
alt={`${presenceItem.data.name}'s Profile Picture`}
height={32}

View file

@ -1,7 +1,6 @@
"use client";
import { UserButton, useUser } from "@clerk/nextjs";
import Image from "next/image";
import Link from "next/link";
import { useRouter, usePathname } from "next/navigation";
import { env } from "env.mjs";
@ -42,13 +41,12 @@ const Navbar = ({ title }: NavbarProps) => {
href="/"
className="btn btn-ghost normal-case text-xl"
>
<Image
<img
className="md:mr-2"
src="/logo.webp"
alt="Nav Logo"
width={32}
height={32}
priority
/>
<span className="hidden md:inline-flex">
{title}

View file

@ -43,7 +43,7 @@
"@flydotio/dockerfile": "^0.4.10",
"@tanstack/eslint-plugin-query": "5.8.4",
"@types/eslint": "8.44.7",
"@types/node": "20.9.1",
"@types/node": "20.9.2",
"@types/react": "18.2.37",
"@typescript-eslint/eslint-plugin": "6.11.0",
"@typescript-eslint/parser": "6.11.0",

128
pnpm-lock.yaml generated
View file

@ -7,7 +7,7 @@ settings:
dependencies:
'@clerk/nextjs':
specifier: 4.27.1
version: 4.27.1(next@14.0.1)(react-dom@18.2.0)(react@18.2.0)
version: 4.27.1(next@14.0.3)(react-dom@18.2.0)(react@18.2.0)
'@clerk/themes':
specifier: 1.7.9
version: 1.7.9(react@18.2.0)
@ -51,11 +51,11 @@ dependencies:
specifier: 0.29.0
version: 0.29.0(@libsql/client@0.4.0-pre.1)(better-sqlite3@9.1.1)
next:
specifier: 14.0.1
version: 14.0.1(react-dom@18.2.0)(react@18.2.0)
specifier: 14.0.3
version: 14.0.3(react-dom@18.2.0)(react@18.2.0)
nextjs-cors:
specifier: 2.1.2
version: 2.1.2(next@14.0.1)
version: 2.1.2(next@14.0.3)
postcss:
specifier: 8.4.31
version: 8.4.31
@ -89,8 +89,8 @@ devDependencies:
specifier: 8.44.7
version: 8.44.7
'@types/node':
specifier: 20.9.1
version: 20.9.1
specifier: 20.9.2
version: 20.9.2
'@types/react':
specifier: 18.2.37
version: 18.2.37
@ -193,7 +193,7 @@ packages:
- react
dev: false
/@clerk/nextjs@4.27.1(next@14.0.1)(react-dom@18.2.0)(react@18.2.0):
/@clerk/nextjs@4.27.1(next@14.0.3)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-FsAwVqCNNOjTC3w9mHjc/T4uP/JzGni0WTXANNXjC4sfh2kDfBzUMLRPNfcgAou5TOsMqYJdRxQ5sx4eCGQIOA==}
engines: {node: '>=14'}
peerDependencies:
@ -206,7 +206,7 @@ packages:
'@clerk/clerk-sdk-node': 4.12.21(react@18.2.0)
'@clerk/shared': 1.1.0(react@18.2.0)
'@clerk/types': 3.58.0
next: 14.0.1(react-dom@18.2.0)(react@18.2.0)
next: 14.0.3(react-dom@18.2.0)(react@18.2.0)
path-to-regexp: 6.2.1
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
@ -934,8 +934,8 @@ packages:
resolution: {integrity: sha512-kTPhdZyTQxB+2wpiRcFWrDcejc4JI6tkPuS7UZCG4l6Zvc5kU/gGQ/ozvHTh1XR5tS+UlfAfGuPajjzQjCiHCw==}
dev: false
/@next/env@14.0.1:
resolution: {integrity: sha512-Ms8ZswqY65/YfcjrlcIwMPD7Rg/dVjdLapMcSHG26W6O67EJDF435ShW4H4LXi1xKO1oRc97tLXUpx8jpLe86A==}
/@next/env@14.0.3:
resolution: {integrity: sha512-7xRqh9nMvP5xrW4/+L0jgRRX+HoNRGnfJpD+5Wq6/13j3dsdzxO3BCXn7D3hMqsDb+vjZnJq+vI7+EtgrYZTeA==}
dev: false
/@next/eslint-plugin-next@14.0.3:
@ -944,8 +944,8 @@ packages:
glob: 7.1.7
dev: true
/@next/swc-darwin-arm64@14.0.1:
resolution: {integrity: sha512-JyxnGCS4qT67hdOKQ0CkgFTp+PXub5W1wsGvIq98TNbF3YEIN7iDekYhYsZzc8Ov0pWEsghQt+tANdidITCLaw==}
/@next/swc-darwin-arm64@14.0.3:
resolution: {integrity: sha512-64JbSvi3nbbcEtyitNn2LEDS/hcleAFpHdykpcnrstITFlzFgB/bW0ER5/SJJwUPj+ZPY+z3e+1jAfcczRLVGw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
@ -953,8 +953,8 @@ packages:
dev: false
optional: true
/@next/swc-darwin-x64@14.0.1:
resolution: {integrity: sha512-625Z7bb5AyIzswF9hvfZWa+HTwFZw+Jn3lOBNZB87lUS0iuCYDHqk3ujuHCkiyPtSC0xFBtYDLcrZ11mF/ap3w==}
/@next/swc-darwin-x64@14.0.3:
resolution: {integrity: sha512-RkTf+KbAD0SgYdVn1XzqE/+sIxYGB7NLMZRn9I4Z24afrhUpVJx6L8hsRnIwxz3ERE2NFURNliPjJ2QNfnWicQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
@ -962,8 +962,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-arm64-gnu@14.0.1:
resolution: {integrity: sha512-iVpn3KG3DprFXzVHM09kvb//4CNNXBQ9NB/pTm8LO+vnnnaObnzFdS5KM+w1okwa32xH0g8EvZIhoB3fI3mS1g==}
/@next/swc-linux-arm64-gnu@14.0.3:
resolution: {integrity: sha512-3tBWGgz7M9RKLO6sPWC6c4pAw4geujSwQ7q7Si4d6bo0l6cLs4tmO+lnSwFp1Tm3lxwfMk0SgkJT7EdwYSJvcg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@ -971,8 +971,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-arm64-musl@14.0.1:
resolution: {integrity: sha512-mVsGyMxTLWZXyD5sen6kGOTYVOO67lZjLApIj/JsTEEohDDt1im2nkspzfV5MvhfS7diDw6Rp/xvAQaWZTv1Ww==}
/@next/swc-linux-arm64-musl@14.0.3:
resolution: {integrity: sha512-v0v8Kb8j8T23jvVUWZeA2D8+izWspeyeDGNaT2/mTHWp7+37fiNfL8bmBWiOmeumXkacM/AB0XOUQvEbncSnHA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@ -980,8 +980,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-x64-gnu@14.0.1:
resolution: {integrity: sha512-wMqf90uDWN001NqCM/auRl3+qVVeKfjJdT9XW+RMIOf+rhUzadmYJu++tp2y+hUbb6GTRhT+VjQzcgg/QTD9NQ==}
/@next/swc-linux-x64-gnu@14.0.3:
resolution: {integrity: sha512-VM1aE1tJKLBwMGtyBR21yy+STfl0MapMQnNrXkxeyLs0GFv/kZqXS5Jw/TQ3TSUnbv0QPDf/X8sDXuMtSgG6eg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@ -989,8 +989,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-x64-musl@14.0.1:
resolution: {integrity: sha512-ol1X1e24w4j4QwdeNjfX0f+Nza25n+ymY0T2frTyalVczUmzkVD7QGgPTZMHfR1aLrO69hBs0G3QBYaj22J5GQ==}
/@next/swc-linux-x64-musl@14.0.3:
resolution: {integrity: sha512-64EnmKy18MYFL5CzLaSuUn561hbO1Gk16jM/KHznYP3iCIfF9e3yULtHaMy0D8zbHfxset9LTOv6cuYKJgcOxg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@ -998,8 +998,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-arm64-msvc@14.0.1:
resolution: {integrity: sha512-WEmTEeWs6yRUEnUlahTgvZteh5RJc4sEjCQIodJlZZ5/VJwVP8p2L7l6VhzQhT4h7KvLx/Ed4UViBdne6zpIsw==}
/@next/swc-win32-arm64-msvc@14.0.3:
resolution: {integrity: sha512-WRDp8QrmsL1bbGtsh5GqQ/KWulmrnMBgbnb+59qNTW1kVi1nG/2ndZLkcbs2GX7NpFLlToLRMWSQXmPzQm4tog==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
@ -1007,8 +1007,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-ia32-msvc@14.0.1:
resolution: {integrity: sha512-oFpHphN4ygAgZUKjzga7SoH2VGbEJXZa/KL8bHCAwCjDWle6R1SpiGOdUdA8EJ9YsG1TYWpzY6FTbUA+iAJeww==}
/@next/swc-win32-ia32-msvc@14.0.3:
resolution: {integrity: sha512-EKffQeqCrj+t6qFFhIFTRoqb2QwX1mU7iTOvMyLbYw3QtqTw9sMwjykyiMlZlrfm2a4fA84+/aeW+PMg1MjuTg==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
@ -1016,8 +1016,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-x64-msvc@14.0.1:
resolution: {integrity: sha512-FFp3nOJ/5qSpeWT0BZQ+YE1pSMk4IMpkME/1DwKBwhg4mJLB9L+6EXuJi4JEwaJdl5iN+UUlmUD3IsR1kx5fAg==}
/@next/swc-win32-x64-msvc@14.0.3:
resolution: {integrity: sha512-ERhKPSJ1vQrPiwrs15Pjz/rvDHZmkmvbf/BjPN/UCOI++ODftT0GtasDPi0j+y6PPJi5HsXw+dpRaXUaw4vjuQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@ -1069,7 +1069,7 @@ packages:
resolution: {integrity: sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==}
engines: {node: '>=8.0.0'}
dependencies:
tslib: 2.6.2
tslib: 2.4.1
dev: false
/@peculiar/webcrypto@1.4.1:
@ -1079,7 +1079,7 @@ packages:
'@peculiar/asn1-schema': 2.3.8
'@peculiar/json-schema': 1.1.12
pvtsutils: 1.3.5
tslib: 2.6.2
tslib: 2.4.1
webcrypto-core: 1.7.7
dev: false
@ -1173,7 +1173,7 @@ packages:
resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==}
dependencies:
'@types/connect': 3.4.38
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: false
/@types/cacheable-request@6.0.3:
@ -1181,14 +1181,14 @@ packages:
dependencies:
'@types/http-cache-semantics': 4.0.4
'@types/keyv': 3.1.4
'@types/node': 20.9.1
'@types/node': 20.9.2
'@types/responselike': 1.0.3
dev: false
/@types/connect@3.4.38:
resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}
dependencies:
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: false
/@types/cookies@0.7.7:
@ -1197,7 +1197,7 @@ packages:
'@types/connect': 3.4.38
'@types/express': 4.17.14
'@types/keygrip': 1.0.5
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: false
/@types/eslint@8.44.7:
@ -1214,7 +1214,7 @@ packages:
/@types/express-serve-static-core@4.17.41:
resolution: {integrity: sha512-OaJ7XLaelTgrvlZD8/aa0vvvxZdUmlCn6MtWeB7TkiKW70BQLc9XEPpDLPdbo52ZhXUCrznlWdCHWxJWtdyajA==}
dependencies:
'@types/node': 20.9.1
'@types/node': 20.9.2
'@types/qs': 6.9.10
'@types/range-parser': 1.2.7
'@types/send': 0.17.4
@ -1252,7 +1252,7 @@ packages:
/@types/keyv@3.1.4:
resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}
dependencies:
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: false
/@types/mime@1.3.5:
@ -1266,29 +1266,29 @@ packages:
/@types/node-fetch@2.6.2:
resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==}
dependencies:
'@types/node': 20.9.1
'@types/node': 20.9.2
form-data: 3.0.1
dev: false
/@types/node-fetch@2.6.9:
resolution: {integrity: sha512-bQVlnMLFJ2d35DkPNjEPmd9ueO/rh5EiaZt2bhqiSarPjZIuIV6bPQVqcrEyvNo+AfTrRGVazle1tl597w3gfA==}
dependencies:
'@types/node': 20.9.1
'@types/node': 20.9.2
form-data: 4.0.0
dev: false
/@types/node-forge@1.3.9:
resolution: {integrity: sha512-meK88cx/sTalPSLSoCzkiUB4VPIFHmxtXm5FaaqRDqBX2i/Sy8bJ4odsan0b20RBjPh06dAQ+OTTdnyQyhJZyQ==}
dependencies:
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: true
/@types/node@16.18.6:
resolution: {integrity: sha512-vmYJF0REqDyyU0gviezF/KHq/fYaUbFhkcNbQCuPGFQj6VTbXuHZoxs/Y7mutWe73C8AC6l9fFu8mSYiBAqkGA==}
dev: false
/@types/node@20.9.1:
resolution: {integrity: sha512-HhmzZh5LSJNS5O8jQKpJ/3ZcrrlG6L70hpGqMIAoM9YVD0YBRNWYsfwcXq8VnSjlNpCpgLzMXdiPo+dxcvSmiA==}
/@types/node@20.9.2:
resolution: {integrity: sha512-WHZXKFCEyIUJzAwh3NyyTHYSR35SevJ6mZ1nWwJafKtiQbqRTIKSRcw3Ma3acqgsent3RRDqeVwpHntMk+9irg==}
dependencies:
undici-types: 5.26.5
@ -1315,7 +1315,7 @@ packages:
/@types/responselike@1.0.3:
resolution: {integrity: sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==}
dependencies:
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: false
/@types/scheduler@0.16.6:
@ -1330,7 +1330,7 @@ packages:
resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==}
dependencies:
'@types/mime': 1.3.5
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: false
/@types/serve-static@1.15.5:
@ -1338,13 +1338,13 @@ packages:
dependencies:
'@types/http-errors': 2.0.4
'@types/mime': 3.0.4
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: false
/@types/ws@8.5.9:
resolution: {integrity: sha512-jbdrY0a8lxfdTp/+r7Z4CkycbOFN8WX+IOchLJr3juT/xzbJ8URyTVSJ/hvNdadTgM1mnedb47n+Y31GsFnQlg==}
dependencies:
'@types/node': 20.9.1
'@types/node': 20.9.2
dev: false
/@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@5.2.2):
@ -2286,7 +2286,7 @@ packages:
resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}
dependencies:
no-case: 3.0.4
tslib: 2.6.2
tslib: 2.4.1
dev: false
/dotenv@16.3.1:
@ -3709,7 +3709,7 @@ packages:
/lower-case@2.0.2:
resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}
dependencies:
tslib: 2.6.2
tslib: 2.4.1
dev: false
/lowercase-keys@2.0.0:
@ -3879,8 +3879,8 @@ packages:
resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==}
dev: true
/next@14.0.1(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-s4YaLpE4b0gmb3ggtmpmV+wt+lPRuGtANzojMQ2+gmBpgX9w5fTbjsy6dXByBuENsdCX5pukZH/GxdFgO62+pA==}
/next@14.0.3(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-AbYdRNfImBr3XGtvnwOxq8ekVCwbFTv/UJoLwmaX89nk9i051AEY4/HAWzU0YpaTDw8IofUpmuIlvzWF13jxIw==}
engines: {node: '>=18.17.0'}
hasBin: true
peerDependencies:
@ -3894,7 +3894,7 @@ packages:
sass:
optional: true
dependencies:
'@next/env': 14.0.1
'@next/env': 14.0.3
'@swc/helpers': 0.5.2
busboy: 1.6.0
caniuse-lite: 1.0.30001563
@ -3904,34 +3904,34 @@ packages:
styled-jsx: 5.1.1(react@18.2.0)
watchpack: 2.4.0
optionalDependencies:
'@next/swc-darwin-arm64': 14.0.1
'@next/swc-darwin-x64': 14.0.1
'@next/swc-linux-arm64-gnu': 14.0.1
'@next/swc-linux-arm64-musl': 14.0.1
'@next/swc-linux-x64-gnu': 14.0.1
'@next/swc-linux-x64-musl': 14.0.1
'@next/swc-win32-arm64-msvc': 14.0.1
'@next/swc-win32-ia32-msvc': 14.0.1
'@next/swc-win32-x64-msvc': 14.0.1
'@next/swc-darwin-arm64': 14.0.3
'@next/swc-darwin-x64': 14.0.3
'@next/swc-linux-arm64-gnu': 14.0.3
'@next/swc-linux-arm64-musl': 14.0.3
'@next/swc-linux-x64-gnu': 14.0.3
'@next/swc-linux-x64-musl': 14.0.3
'@next/swc-win32-arm64-msvc': 14.0.3
'@next/swc-win32-ia32-msvc': 14.0.3
'@next/swc-win32-x64-msvc': 14.0.3
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
dev: false
/nextjs-cors@2.1.2(next@14.0.1):
/nextjs-cors@2.1.2(next@14.0.3):
resolution: {integrity: sha512-2yOVivaaf2ILe4f/qY32hnj3oC77VCOsUQJQfhVMGsXE/YMEWUY2zy78sH9FKUCM7eG42/l3pDofIzMD781XGA==}
peerDependencies:
next: ^8.1.1-canary.54 || ^9.0.0 || ^10.0.0-0 || ^11.0.0 || ^12.0.0 || ^13.0.0
dependencies:
cors: 2.8.5
next: 14.0.1(react-dom@18.2.0)(react@18.2.0)
next: 14.0.3(react-dom@18.2.0)(react@18.2.0)
dev: false
/no-case@3.0.4:
resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}
dependencies:
lower-case: 2.0.2
tslib: 2.6.2
tslib: 2.4.1
dev: false
/node-abi@3.51.0:
@ -4616,7 +4616,7 @@ packages:
resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==}
dependencies:
dot-case: 3.0.4
tslib: 2.6.2
tslib: 2.4.1
dev: false
/snakecase-keys@3.2.1:
@ -5148,7 +5148,7 @@ packages:
'@peculiar/json-schema': 1.1.12
asn1js: 3.0.5
pvtsutils: 1.3.5
tslib: 2.6.2
tslib: 2.4.1
dev: false
/webidl-conversions@3.0.1: