From ebfd35c4bb6b898b36fed8550ff424868c85200f Mon Sep 17 00:00:00 2001
From: Adrian Castro <22133246+castdrian@users.noreply.github.com>
Date: Tue, 26 Mar 2024 21:25:42 +0100
Subject: [PATCH] chore: adjust controls for local playback
---
.../src/components/player/BottomControls.tsx | 20 +++++++++++--------
.../src/components/player/ControlsOverlay.tsx | 2 +-
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/apps/expo/src/components/player/BottomControls.tsx b/apps/expo/src/components/player/BottomControls.tsx
index 539fe26..70de673 100644
--- a/apps/expo/src/components/player/BottomControls.tsx
+++ b/apps/expo/src/components/player/BottomControls.tsx
@@ -14,7 +14,7 @@ import { SeasonSelector } from "./SeasonEpisodeSelector";
import { SourceSelector } from "./SourceSelector";
import { mapMillisecondsToTime } from "./utils";
-export const BottomControls = () => {
+export const BottomControls = ({ isLocalAsset }: { isLocalAsset: boolean }) => {
const status = usePlayerStore((state) => state.status);
const setIsIdle = usePlayerStore((state) => state.setIsIdle);
const [showRemaining, setShowRemaining] = useState(false);
@@ -76,13 +76,17 @@ export const BottomControls = () => {
gap={4}
paddingBottom={40}
>
-
-
-
-
-
-
-
+ {!isLocalAsset && (
+ <>
+
+
+
+
+
+
+
+ >
+ )}
);
diff --git a/apps/expo/src/components/player/ControlsOverlay.tsx b/apps/expo/src/components/player/ControlsOverlay.tsx
index f2514c2..720da08 100644
--- a/apps/expo/src/components/player/ControlsOverlay.tsx
+++ b/apps/expo/src/components/player/ControlsOverlay.tsx
@@ -20,7 +20,7 @@ export const ControlsOverlay = ({
>
{!isLoading && }
- {!isLocalAsset && }
+
);
};