mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
reorder album artist page
This commit is contained in:
parent
eb50c69a35
commit
f7dd634f67
5 changed files with 201 additions and 98 deletions
|
|
@ -0,0 +1,25 @@
|
|||
import { DraggableItems } from '/@/renderer/features/settings/components/general/draggable-items';
|
||||
import { ArtistItem, useGeneralSettings, useSettingsStoreActions } from '/@/renderer/store';
|
||||
|
||||
const ARTIST_ITEMS: Array<[ArtistItem, string]> = [
|
||||
[ArtistItem.BIOGRAPHY, 'table.column.biography'],
|
||||
[ArtistItem.TOP_SONGS, 'page.albumArtistDetail.topSongs'],
|
||||
[ArtistItem.RECENT_ALBUMS, 'page.albumArtistDetail.recentReleases'],
|
||||
[ArtistItem.COMPILATIONS, 'page.albumArtistDetail.appearsOn'],
|
||||
[ArtistItem.SIMILAR_ARTISTS, 'page.albumArtistDetail.relatedArtists'],
|
||||
];
|
||||
|
||||
export const ArtistSettings = () => {
|
||||
const { artistItems } = useGeneralSettings();
|
||||
const { setArtistItems } = useSettingsStoreActions();
|
||||
|
||||
return (
|
||||
<DraggableItems
|
||||
description="setting.artistConfiguration"
|
||||
itemLabels={ARTIST_ITEMS}
|
||||
setItems={setArtistItems}
|
||||
settings={artistItems}
|
||||
title="setting.artistConfiguration"
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
@ -9,6 +9,7 @@ import isElectron from 'is-electron';
|
|||
import { HomeSettings } from '/@/renderer/features/settings/components/general/home-settings';
|
||||
import { SidebarReorder } from '/@/renderer/features/settings/components/general/sidebar-reorder';
|
||||
import { ContextMenuSettings } from '/@/renderer/features/settings/components/general/context-menu-settings';
|
||||
import { ArtistSettings } from '/@/renderer/features/settings/components/general/artist-settings';
|
||||
|
||||
export const GeneralTab = () => {
|
||||
return (
|
||||
|
|
@ -17,6 +18,7 @@ export const GeneralTab = () => {
|
|||
<ThemeSettings />
|
||||
<ControlSettings />
|
||||
<HomeSettings />
|
||||
<ArtistSettings />
|
||||
<SidebarReorder />
|
||||
<SidebarSettings />
|
||||
<ContextMenuSettings />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue