mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
chore: disable unrelated eslint rules
This commit is contained in:
parent
ff11a90a5e
commit
733e138233
20 changed files with 43 additions and 16 deletions
|
@ -40,6 +40,7 @@ export const ChangelogModal = (props: {
|
|||
});
|
||||
});
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [props.version]);
|
||||
|
||||
return (
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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="
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue