aboutsummaryrefslogtreecommitdiff
path: root/src/app/kdrama/components/searchFormatter.jsx
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-05-26 22:29:35 +0530
committerreal-zephex <[email protected]>2024-05-26 22:29:35 +0530
commit3da8e6263d1900571cc8565b19d1b383dfbbf631 (patch)
treec9aefb831b91e9f8c531d246be2cd88cd0af669a /src/app/kdrama/components/searchFormatter.jsx
parent🚀 feat(download): add download feature for movies (diff)
downloaddramalama-3da8e6263d1900571cc8565b19d1b383dfbbf631.tar.xz
dramalama-3da8e6263d1900571cc8565b19d1b383dfbbf631.zip
⚡️ perf(kdrama, anime): cache video links, replace next/image
Diffstat (limited to 'src/app/kdrama/components/searchFormatter.jsx')
-rw-r--r--src/app/kdrama/components/searchFormatter.jsx12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/app/kdrama/components/searchFormatter.jsx b/src/app/kdrama/components/searchFormatter.jsx
index bac2549..a9e2f42 100644
--- a/src/app/kdrama/components/searchFormatter.jsx
+++ b/src/app/kdrama/components/searchFormatter.jsx
@@ -1,5 +1,5 @@
-import { Card, CardHeader, CardBody, Image, Link } from "@nextui-org/react";
-import NextImage from "next/image";
+import { Card, CardHeader, CardBody, Link } from "@nextui-org/react";
+import Image from "next/image";
import styles from "../../page.module.css";
@@ -16,18 +16,16 @@ const SearchedDataFormatter = async (data) => {
href={`/kdrama/${encodeURIComponent(item.id)}`}
aria-label="anime redirection links"
className="flex flex-col items-center mx-1"
+ title={item.title}
>
<Card className="overflow-hidden" isPressable>
<CardBody>
<Image
- as={NextImage}
- isBlurred
- alt="Anime Poster"
+ alt="Searched Kdrama Poster"
src={item.image}
width={185}
height={120}
- shadow="lg"
- className="h-64"
+ className="rounded-md h-64"
priority
/>
</CardBody>