From c23ca905c8f1cbc4f669088f1dd24fea44b8968a Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Mon, 19 Aug 2024 22:26:33 +0200 Subject: [PATCH] fix: bug after refactor --- components/downloads/EpisodeCard.tsx | 4 ++-- components/downloads/MovieCard.tsx | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/components/downloads/EpisodeCard.tsx b/components/downloads/EpisodeCard.tsx index 68678323..dc2a5d71 100644 --- a/components/downloads/EpisodeCard.tsx +++ b/components/downloads/EpisodeCard.tsx @@ -8,12 +8,12 @@ import { useAtom } from "jotai"; import { Text } from "../common/Text"; import { useFiles } from "@/hooks/useFiles"; +import { useSettings } from "@/utils/atoms/settings"; import { currentlyPlayingItemAtom, fullScreenAtom, playingAtom, -} from "../CurrentlyPlayingBar"; -import { useSettings } from "@/utils/atoms/settings"; +} from "@/utils/atoms/playState"; interface EpisodeCardProps { item: BaseItemDto; diff --git a/components/downloads/MovieCard.tsx b/components/downloads/MovieCard.tsx index 5deb999d..96018da2 100644 --- a/components/downloads/MovieCard.tsx +++ b/components/downloads/MovieCard.tsx @@ -9,12 +9,13 @@ import { useAtom } from "jotai"; import { Text } from "../common/Text"; import { useFiles } from "@/hooks/useFiles"; import { runtimeTicksToMinutes } from "@/utils/time"; + +import { useSettings } from "@/utils/atoms/settings"; import { currentlyPlayingItemAtom, - fullScreenAtom, playingAtom, -} from "../CurrentlyPlayingBar"; -import { useSettings } from "@/utils/atoms/settings"; + fullScreenAtom, +} from "@/utils/atoms/playState"; interface MovieCardProps { item: BaseItemDto; @@ -81,7 +82,12 @@ export const MovieCard: React.FC = ({ item }) => { - + {contextMenuOptions.map((option) => (