diff options
| author | real-zephex <[email protected]> | 2024-05-07 10:21:36 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-05-07 10:21:36 +0530 |
| commit | fb481fc6a5211f66bf68087406fa6064bb9ca8d8 (patch) | |
| tree | 10a4dd33741ebba89285aeedf58058ff3341111e /src/app/kdrama/components/search.jsx | |
| parent | well, I tried something (diff) | |
| download | dramalama-fb481fc6a5211f66bf68087406fa6064bb9ca8d8.tar.xz dramalama-fb481fc6a5211f66bf68087406fa6064bb9ca8d8.zip | |
didn't like it
Diffstat (limited to 'src/app/kdrama/components/search.jsx')
| -rw-r--r-- | src/app/kdrama/components/search.jsx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/app/kdrama/components/search.jsx b/src/app/kdrama/components/search.jsx index 1d1b93b..f44e4bb 100644 --- a/src/app/kdrama/components/search.jsx +++ b/src/app/kdrama/components/search.jsx @@ -21,20 +21,13 @@ export default function DramaSearch() { setInfoTitle(data);
};
- const fetch_every_title = async (title) => {
- FetchSearchTitle(title);
- };
-
return (
<div className={styles.SearchContainer}>
<div className={styles.Search}>
<FaSearch color="white" size={16} />
<input
placeholder="Search for drama"
- onChange={(event) => {
- setTitle(event.target.value);
- fetch_every_title(title);
- }}
+ onChange={(event) => setTitle(event.target.value)}
onKeyDown={async (e) => {
if ((e.key === "Enter" || e.code === 13) && title) {
await handleSearch(e.target.value);
|