diff options
| author | real-zephex <[email protected]> | 2024-05-26 22:29:35 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-05-26 22:29:35 +0530 |
| commit | 3da8e6263d1900571cc8565b19d1b383dfbbf631 (patch) | |
| tree | c9aefb831b91e9f8c531d246be2cd88cd0af669a /src/app/kdrama/components/searchFormatter.jsx | |
| parent | 🚀 feat(download): add download feature for movies (diff) | |
| download | dramalama-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.jsx | 12 |
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> |