From 87cb686736fce320e2e699a4e9a27d6edfc57297 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Wed, 1 Jan 2025 15:38:03 -0600 Subject: [PATCH] miniplayer stuff --- components/Player/helpers/buttons.tsx | 2 ++ components/Player/mini-player.tsx | 4 ++-- player/provider.tsx | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/Player/helpers/buttons.tsx b/components/Player/helpers/buttons.tsx index d08d6c15..3776df99 100644 --- a/components/Player/helpers/buttons.tsx +++ b/components/Player/helpers/buttons.tsx @@ -7,6 +7,8 @@ export function playPauseButton(playbackState: State | undefined, play: Function let button : React.JSX.Element; + console.debug(`Playback State: ${playbackState}`) + switch (playbackState) { case (State.Playing) : { button = pause()} /> diff --git a/components/Player/mini-player.tsx b/components/Player/mini-player.tsx index 00a06576..9ac76b17 100644 --- a/components/Player/mini-player.tsx +++ b/components/Player/mini-player.tsx @@ -27,7 +27,7 @@ export function Miniplayer({ navigation }: { navigation : NavigationHelpers { ]) //#endregion RNTP Setup + //#region return return { showPlayer, setShowPlayer, @@ -142,6 +143,7 @@ const PlayerContextInitializer = () => { resetQueue, playbackState, } + //#endregion return } export const PlayerContext = createContext({