chore: disable unrelated eslint rules

This commit is contained in:
Kentai Radiquum 2024-08-23 05:12:46 +05:00
parent ff11a90a5e
commit 733e138233
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
20 changed files with 43 additions and 16 deletions

View file

@ -40,6 +40,7 @@ export const ChangelogModal = (props: {
});
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.version]);
return (

View file

@ -42,6 +42,7 @@ export const CollectionInfoBasics = (props: {
width={725}
height={400}
className="w-full rounded-lg"
alt=""
/>
</div>
<div className="flex flex-col gap-1">

View file

@ -99,6 +99,7 @@ export const CommentsComment = (props: {
setShouldRender(false);
setCommentSend(false);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [commentSend]);
async function _sendVote(action: number) {

View file

@ -155,6 +155,7 @@ const CommentsAllModal = (props: {
if (scrollPosition >= 95 && scrollPosition <= 96) {
setSize(size + 1);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [scrollPosition]);
return (

View file

@ -13,12 +13,11 @@ export const RelatedSection = (props: any) => {
<section>
<div className="flex flex-col justify-between gap-4 p-4 xl:flex-row">
<div className="flex items-center justify-center p-4">
{props.images.map((item) => {
{props.images.map((item, index) => {
return (
<div className="w-[100px] lg:w-[300px] aspect-[9/12] even:scale-110 shadow-md even:shadow-lg even:z-30 origin-center first:[transform:translateX(25%)] last:[transform:translateX(-25%)]">
<div key={`related-img-${index}`} className="w-[100px] lg:w-[300px] aspect-[9/12] even:scale-110 shadow-md even:shadow-lg even:z-30 origin-center first:[transform:translateX(25%)] last:[transform:translateX(-25%)]">
<Image
fill={true}
key={item}
src={item}
alt=""
sizes="

View file

@ -184,8 +184,10 @@ const AddReleaseToCollectionModal = (props: {
if (scrollPosition >= 95 && scrollPosition <= 96) {
setSize(size + 1);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [scrollPosition]);
function _addToCollection(collection_id: number) {
if (props.token) {
fetch(