mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix table configuration on now playing route (#1346)
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import { PageHeader } from '/@/renderer/components/page-header/page-header';
|
import { PageHeader } from '/@/renderer/components/page-header/page-header';
|
||||||
import { LibraryHeaderBar } from '/@/renderer/features/shared/components/library-header-bar';
|
import { LibraryHeaderBar } from '/@/renderer/features/shared/components/library-header-bar';
|
||||||
|
|
||||||
export const NowPlayingHeader = () => {
|
export const NowPlayingHeader = () => {
|
||||||
// const currentSong = useCurrentSong();
|
const { t } = useTranslation();
|
||||||
// const theme = useTheme();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageHeader>
|
<PageHeader>
|
||||||
<LibraryHeaderBar ignoreMaxWidth>
|
<LibraryHeaderBar ignoreMaxWidth>
|
||||||
<LibraryHeaderBar.Title>Queue</LibraryHeaderBar.Title>
|
<LibraryHeaderBar.Title>
|
||||||
|
{t('page.sidebar.nowPlaying', { postProcess: 'titleCase' })}
|
||||||
|
</LibraryHeaderBar.Title>
|
||||||
</LibraryHeaderBar>
|
</LibraryHeaderBar>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { type MutableRefObject } from 'react';
|
import { RefObject } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import { SONG_TABLE_COLUMNS } from '/@/renderer/components/item-list/item-table-list/default-columns';
|
import { SONG_TABLE_COLUMNS } from '/@/renderer/components/item-list/item-table-list/default-columns';
|
||||||
@@ -16,7 +16,7 @@ import { ItemListKey, ListDisplayType } from '/@/shared/types/types';
|
|||||||
interface PlayQueueListOptionsProps {
|
interface PlayQueueListOptionsProps {
|
||||||
handleSearch: (value: string) => void;
|
handleSearch: (value: string) => void;
|
||||||
searchTerm?: string;
|
searchTerm?: string;
|
||||||
tableRef: MutableRefObject<ItemListHandle | null>;
|
tableRef: RefObject<ItemListHandle | null>;
|
||||||
type: ItemListKey;
|
type: ItemListKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,6 +24,7 @@ export const PlayQueueListControls = ({
|
|||||||
handleSearch,
|
handleSearch,
|
||||||
searchTerm,
|
searchTerm,
|
||||||
tableRef,
|
tableRef,
|
||||||
|
type,
|
||||||
}: PlayQueueListOptionsProps) => {
|
}: PlayQueueListOptionsProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const player = usePlayer();
|
const player = usePlayer();
|
||||||
@@ -144,7 +145,7 @@ export const PlayQueueListControls = ({
|
|||||||
value: ListDisplayType.GRID,
|
value: ListDisplayType.GRID,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
listKey={ItemListKey.SIDE_QUEUE}
|
listKey={type}
|
||||||
optionsConfig={{
|
optionsConfig={{
|
||||||
table: {
|
table: {
|
||||||
itemsPerPage: { hidden: true },
|
itemsPerPage: { hidden: true },
|
||||||
|
|||||||
Reference in New Issue
Block a user