rename player context hook

This commit is contained in:
jeffvli
2025-11-14 19:54:46 -08:00
parent 9c2ed36b5c
commit ec0590c79a
9 changed files with 18 additions and 24 deletions
@@ -7,7 +7,7 @@ import { generatePath, Link } from 'react-router';
import styles from './sidebar-playlist-list.module.css';
import { usePlayerContext } from '/@/renderer/features/player/context/player-context';
import { usePlayer } from '/@/renderer/features/player/context/player-context';
import { playlistsQueries } from '/@/renderer/features/playlists/api/playlists-api';
import { CreatePlaylistForm } from '/@/renderer/features/playlists/components/create-playlist-form';
import { SidebarItem } from '/@/renderer/features/sidebar/components/sidebar-item';
@@ -218,7 +218,7 @@ const RowControls = ({
};
export const SidebarPlaylistList = () => {
const player = usePlayerContext();
const player = usePlayer();
const { t } = useTranslation();
const server = useCurrentServer();
@@ -330,7 +330,7 @@ export const SidebarPlaylistList = () => {
};
export const SidebarSharedPlaylistList = () => {
const player = usePlayerContext();
const player = usePlayer();
const { t } = useTranslation();
const server = useCurrentServer();