Skip to content

Commit

Permalink
refactor: remove unnecessary indent
Browse files Browse the repository at this point in the history
  • Loading branch information
sehnryr committed Nov 11, 2024
1 parent 71e8cc7 commit 893a65f
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions src/pages/Browse/ExtensionBrowse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,29 +125,27 @@ const MangaItem = (
}, []);

return (
<>
<Link
to={{ pathname: `/browse/${extensionId}/${manga.id}` }}
state={manga}
>
<div className="w-full aspect-[2/3] skeleton rounded-md">
<LazyImage
src={src}
alt={manga.title}
onLoad={() => setLoading(false)}
onChange={(inView) => {
if (inView) setLoading(true);
}}
className={`w-full h-full object-cover rounded-md transition-opacity duration-300 ${
loading ? "opacity-0" : "opacity-1"
}`}
offset="200vh"
/>
</div>
<p className="mx-1 mt-1 line-clamp-2 text-sm font-bold">
{manga.title}
</p>
</Link>
</>
<Link
to={{ pathname: `/browse/${extensionId}/${manga.id}` }}
state={manga}
>
<div className="w-full aspect-[2/3] skeleton rounded-md">
<LazyImage
src={src}
alt={manga.title}
onLoad={() => setLoading(false)}
onChange={(inView) => {
if (inView) setLoading(true);
}}
className={`w-full h-full object-cover rounded-md transition-opacity duration-300 ${
loading ? "opacity-0" : "opacity-1"
}`}
offset="200vh"
/>
</div>
<p className="mx-1 mt-1 line-clamp-2 text-sm font-bold">
{manga.title}
</p>
</Link>
);
};

0 comments on commit 893a65f

Please sign in to comment.