diff options
| author | zephex <[email protected]> | 2024-04-20 13:34:53 +0530 |
|---|---|---|
| committer | zephex <[email protected]> | 2024-04-20 13:34:53 +0530 |
| commit | d6780cf3dad729c69a102ba2940188cf1e6bcbf4 (patch) | |
| tree | d10a2aefef6664c42439f165c73722c514b032bc /src/app/anime/search/components/fetchedInfo.js | |
| parent | feature added: tracker for mangas (diff) | |
| download | dramalama-d6780cf3dad729c69a102ba2940188cf1e6bcbf4.tar.xz dramalama-d6780cf3dad729c69a102ba2940188cf1e6bcbf4.zip | |
idk whats happening
Diffstat (limited to 'src/app/anime/search/components/fetchedInfo.js')
| -rw-r--r-- | src/app/anime/search/components/fetchedInfo.js | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/src/app/anime/search/components/fetchedInfo.js b/src/app/anime/search/components/fetchedInfo.js index aa3ffb1..d88797b 100644 --- a/src/app/anime/search/components/fetchedInfo.js +++ b/src/app/anime/search/components/fetchedInfo.js @@ -1,46 +1,46 @@ -import styles from "../search.module.css"; -import Link from "next/link"; -import Image from "next/image"; -import { preFetchAnimeInfo } from "../../videoLinkfetcher"; - -export default async function fetchedInfo(data) { - preFetchAnimeInfo(data); - return ( - <div className={styles.animeEntry}> - {data ? ( - data.results && data.results.length > 0 ? ( - data.results.map((item, index) => ( - <Link - key={index} - href={`/anime/${item.id}`} - style={{ textDecoration: "none" }} - > - <div className={styles.anime}> - <p>{item.title}</p> - <Image - src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=${item.image}`} - className={styles.animeImage} - width={120} - height={180} - alt="Drama Poster" - /> - </div> - </Link> - )) - ) : ( - <div style={{ margin: "0px auto" }}> - <p - style={{ - color: "white", - fontFamily: "Kanit", - fontSize: 18, - }} - > - No results found - </p> - </div> - ) - ) : null} - </div> - ); -} +import styles from "../search.module.css";
+import Link from "next/link";
+import Image from "next/image";
+import { preFetchAnimeInfo } from "../../videoLinkfetcher";
+
+export default async function fetchedInfo(data) {
+ preFetchAnimeInfo(data);
+ return (
+ <div className={styles.animeEntry}>
+ {data ? (
+ data.results && data.results.length > 0 ? (
+ data.results.map((item, index) => (
+ <Link
+ key={index}
+ href={`/anime/${item.id}`}
+ style={{ textDecoration: "none" }}
+ >
+ <div className={styles.anime}>
+ <p>{item.title}</p>
+ <Image
+ src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=${item.image}`}
+ className={styles.animeImage}
+ width={120}
+ height={180}
+ alt="Drama Poster"
+ />
+ </div>
+ </Link>
+ ))
+ ) : (
+ <div style={{ margin: "0px auto" }}>
+ <p
+ style={{
+ color: "white",
+ fontFamily: "Kanit",
+ fontSize: 18,
+ }}
+ >
+ No results found
+ </p>
+ </div>
+ )
+ ) : null}
+ </div>
+ );
+}
|