mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-15 18:30:23 +01:00
fix: bug after refactor
This commit is contained in:
@@ -8,12 +8,12 @@ import { useAtom } from "jotai";
|
|||||||
|
|
||||||
import { Text } from "../common/Text";
|
import { Text } from "../common/Text";
|
||||||
import { useFiles } from "@/hooks/useFiles";
|
import { useFiles } from "@/hooks/useFiles";
|
||||||
|
import { useSettings } from "@/utils/atoms/settings";
|
||||||
import {
|
import {
|
||||||
currentlyPlayingItemAtom,
|
currentlyPlayingItemAtom,
|
||||||
fullScreenAtom,
|
fullScreenAtom,
|
||||||
playingAtom,
|
playingAtom,
|
||||||
} from "../CurrentlyPlayingBar";
|
} from "@/utils/atoms/playState";
|
||||||
import { useSettings } from "@/utils/atoms/settings";
|
|
||||||
|
|
||||||
interface EpisodeCardProps {
|
interface EpisodeCardProps {
|
||||||
item: BaseItemDto;
|
item: BaseItemDto;
|
||||||
|
|||||||
@@ -9,12 +9,13 @@ import { useAtom } from "jotai";
|
|||||||
import { Text } from "../common/Text";
|
import { Text } from "../common/Text";
|
||||||
import { useFiles } from "@/hooks/useFiles";
|
import { useFiles } from "@/hooks/useFiles";
|
||||||
import { runtimeTicksToMinutes } from "@/utils/time";
|
import { runtimeTicksToMinutes } from "@/utils/time";
|
||||||
|
|
||||||
|
import { useSettings } from "@/utils/atoms/settings";
|
||||||
import {
|
import {
|
||||||
currentlyPlayingItemAtom,
|
currentlyPlayingItemAtom,
|
||||||
fullScreenAtom,
|
|
||||||
playingAtom,
|
playingAtom,
|
||||||
} from "../CurrentlyPlayingBar";
|
fullScreenAtom,
|
||||||
import { useSettings } from "@/utils/atoms/settings";
|
} from "@/utils/atoms/playState";
|
||||||
|
|
||||||
interface MovieCardProps {
|
interface MovieCardProps {
|
||||||
item: BaseItemDto;
|
item: BaseItemDto;
|
||||||
@@ -81,7 +82,12 @@ export const MovieCard: React.FC<MovieCardProps> = ({ item }) => {
|
|||||||
</View>
|
</View>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
</ContextMenu.Trigger>
|
</ContextMenu.Trigger>
|
||||||
<ContextMenu.Content>
|
<ContextMenu.Content
|
||||||
|
loop={false}
|
||||||
|
alignOffset={0}
|
||||||
|
avoidCollisions={false}
|
||||||
|
collisionPadding={0}
|
||||||
|
>
|
||||||
{contextMenuOptions.map((option) => (
|
{contextMenuOptions.map((option) => (
|
||||||
<ContextMenu.Item
|
<ContextMenu.Item
|
||||||
key={option.label}
|
key={option.label}
|
||||||
|
|||||||
Reference in New Issue
Block a user