mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-15 10:20:27 +01:00
chore: remove unused code
This commit is contained in:
@@ -397,32 +397,6 @@ export const Controls: React.FC<Props> = ({
|
|||||||
)[];
|
)[];
|
||||||
}, [item, isVideoLoaded, subtitleTracks, mediaSource]);
|
}, [item, isVideoLoaded, subtitleTracks, mediaSource]);
|
||||||
|
|
||||||
/**
|
|
||||||
* Bottom sheet
|
|
||||||
*/
|
|
||||||
const bottomSheetModalRef = useRef<BottomSheetModal>(null);
|
|
||||||
|
|
||||||
const handlePresentModalPress = useCallback(() => {
|
|
||||||
bottomSheetModalRef.current?.present();
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const handleSheetChanges = useCallback((index: number) => {}, []);
|
|
||||||
|
|
||||||
const closeModal = useCallback(() => {
|
|
||||||
bottomSheetModalRef.current?.dismiss();
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const renderBackdrop = useCallback(
|
|
||||||
(props: BottomSheetBackdropProps) => (
|
|
||||||
<BottomSheetBackdrop
|
|
||||||
{...props}
|
|
||||||
disappearsOnIndex={-1}
|
|
||||||
appearsOnIndex={0}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user