mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 20:40:21 +02:00
fix the loading state on listquery add to queue
This commit is contained in:
@@ -3,7 +3,7 @@ import { CSSProperties, memo, ReactNode, useCallback } from 'react';
|
||||
|
||||
import styles from './library-header-bar.module.css';
|
||||
|
||||
import { usePlayer } from '/@/renderer/features/player/context/player-context';
|
||||
import { useIsPlayerFetching, usePlayer } from '/@/renderer/features/player/context/player-context';
|
||||
import { DefaultPlayButton } from '/@/renderer/features/shared/components/play-button';
|
||||
import { PlayButtonGroup } from '/@/renderer/features/shared/components/play-button-group';
|
||||
import { useCurrentServerId } from '/@/renderer/store';
|
||||
@@ -86,10 +86,13 @@ const HeaderPlayButton = ({
|
||||
});
|
||||
}, [serverId, handlePlay]);
|
||||
|
||||
const isPlayerFetching = useIsPlayerFetching();
|
||||
|
||||
return (
|
||||
<div className={styles.playButtonContainer}>
|
||||
<DefaultPlayButton
|
||||
className={className}
|
||||
loading={isPlayerFetching}
|
||||
onClick={openPlayTypeModal}
|
||||
variant={variant}
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user