From bc2963f9e76a4000e3f1747b6fa4affdebba3956 Mon Sep 17 00:00:00 2001 From: real-zephex Date: Sun, 17 Mar 2024 07:08:55 +0530 Subject: prettified the code :) --- src/app/kdrama/page.js | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to 'src/app/kdrama/page.js') diff --git a/src/app/kdrama/page.js b/src/app/kdrama/page.js index 3877453..129c913 100644 --- a/src/app/kdrama/page.js +++ b/src/app/kdrama/page.js @@ -1,11 +1,11 @@ -"use client" +"use client"; -import "./kdrama.css" +import "./kdrama.css"; import { useState } from "react"; import ReactPlayer from "react-player"; -import Image from 'next/image'; -import { FaSearch } from 'react-icons/fa'; // Import the search icon from react-icons library +import Image from "next/image"; +import { FaSearch } from "react-icons/fa"; // Import the search icon from react-icons library import { fetchAnimeInfo, @@ -14,7 +14,6 @@ import { } from "./api/fetchAnime.js"; export default function Kdrama() { - const [searchTitle, setSearchTitle] = useState(""); const [searchedDrama, setSearchedDrama] = useState(null); async function handleKeyPresses(event) { @@ -50,7 +49,7 @@ export default function Kdrama() { return (
- + setSearchTitle(event.target.value)} @@ -59,17 +58,12 @@ export default function Kdrama() {
-

- Start by searching for some dramas -

-

- Look for the search box above. -

+

Start by searching for some dramas

+

Look for the search box above.

- {videoLink && (
-

- {details.title} -

+

{details.title}

- - ) -} \ No newline at end of file + ); +} -- cgit v1.2.3