From c60972fdad37b5e6e7a4912a018edf156bf52c7a Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sun, 17 Aug 2025 12:35:56 -0500 Subject: [PATCH] context sheet fixes on android --- src/screens/index.tsx | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/src/screens/index.tsx b/src/screens/index.tsx index 770148ba..126328a4 100644 --- a/src/screens/index.tsx +++ b/src/screens/index.tsx @@ -7,9 +7,8 @@ import Login from './Login' import { createNativeStackNavigator } from '@react-navigation/native-stack' import Context from './Context' import { getItemName } from '../utils/text' -import { useCallback } from 'react' import AddToPlaylistSheet from './AddToPlaylist' -import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models' +import { Platform } from 'react-native' const RootStack = createNativeStackNavigator() @@ -18,28 +17,6 @@ export default function Root(): React.JSX.Element { const { api, library } = useJellifyContext() - const getContextSheetDetents = useCallback( - (artists: string[] | null | undefined, type: BaseItemKind | undefined) => { - let detent: number = 0 - - switch (type) { - case 'Audio': - detent = 0.3 - break - case 'MusicAlbum': - detent = 0.25 - break - case 'Playlist': - detent = 0.2 - break - default: - detent = 0.15 - } - return [detent + (artists?.length ?? 1) * 0.075] - }, - [], - ) - return (