diff --git a/.eslintrc.json b/.eslintrc.json
index 3722418..1a1ad7a 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,3 +1,6 @@
{
- "extends": ["next/core-web-vitals", "next/typescript"]
+ "extends": ["next/core-web-vitals", "next/typescript"],
+ "rules": {
+ "@next/next/no-img-element": "off"
+ }
}
diff --git a/components/AddVideoDialog.tsx b/components/AddVideoDialog.tsx
index 7831f27..ba9478e 100644
--- a/components/AddVideoDialog.tsx
+++ b/components/AddVideoDialog.tsx
@@ -22,7 +22,6 @@ import {
DrawerTrigger,
} from "./ui/drawer";
import { toast } from "sonner";
-import { useMediaQuery } from "@/hooks/use-media-query";
import {
Dialog,
DialogContent,
@@ -31,16 +30,17 @@ import {
DialogTrigger,
} from "./ui/dialog";
import { searchVideos } from "@/lib/flexSearch";
+import { useMediaQuery } from "@/lib/hooks/useMediaQuery";
-function LocalSearchResults({
+function LocalSearchResults({
videos,
- onSelectVideo
-}: {
+ onSelectVideo,
+}: {
videos: Video[];
onSelectVideo: (video: Video) => void;
}) {
if (videos.length === 0) return null;
-
+
return (
@@ -71,14 +71,14 @@ function LocalSearchResults({
);
}
-function YouTubeSearchResults({
+function YouTubeSearchResults({
videos,
searchQuery,
isLoading,
onAddVideo,
onSearch,
- onClear
-}: {
+ onClear,
+}: {
videos: Video[];
searchQuery: string;
isLoading: boolean;
@@ -94,11 +94,7 @@ function YouTubeSearchResults({
{videos.length > 0 && (
-