mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
update name of Single section to Single EP
This commit is contained in:
@@ -45,6 +45,7 @@ import { Button } from '/@/shared/components/button/button';
|
|||||||
import { Grid } from '/@/shared/components/grid/grid';
|
import { Grid } from '/@/shared/components/grid/grid';
|
||||||
import { Group } from '/@/shared/components/group/group';
|
import { Group } from '/@/shared/components/group/group';
|
||||||
import { Icon } from '/@/shared/components/icon/icon';
|
import { Icon } from '/@/shared/components/icon/icon';
|
||||||
|
import { Separator } from '/@/shared/components/separator/separator';
|
||||||
import { Spinner } from '/@/shared/components/spinner/spinner';
|
import { Spinner } from '/@/shared/components/spinner/spinner';
|
||||||
import { Spoiler } from '/@/shared/components/spoiler/spoiler';
|
import { Spoiler } from '/@/shared/components/spoiler/spoiler';
|
||||||
import { Stack } from '/@/shared/components/stack/stack';
|
import { Stack } from '/@/shared/components/stack/stack';
|
||||||
@@ -681,7 +682,7 @@ interface AlbumSectionProps {
|
|||||||
controls: ItemControls;
|
controls: ItemControls;
|
||||||
cq: ReturnType<typeof useContainerQuery>;
|
cq: ReturnType<typeof useContainerQuery>;
|
||||||
rows: DataRow[] | undefined;
|
rows: DataRow[] | undefined;
|
||||||
title: string;
|
title: React.ReactNode | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const AlbumSection = ({ albums, controls, cq, rows, title }: AlbumSectionProps) => {
|
const AlbumSection = ({ albums, controls, cq, rows, title }: AlbumSectionProps) => {
|
||||||
@@ -816,7 +817,7 @@ const ArtistAlbums = () => {
|
|||||||
|
|
||||||
return Object.entries(albumsByReleaseType)
|
return Object.entries(albumsByReleaseType)
|
||||||
.map(([releaseType, albums]) => {
|
.map(([releaseType, albums]) => {
|
||||||
let displayName: string;
|
let displayName: React.ReactNode | string;
|
||||||
switch (releaseType) {
|
switch (releaseType) {
|
||||||
case 'album':
|
case 'album':
|
||||||
displayName = t('releaseType.primary.album', {
|
displayName = t('releaseType.primary.album', {
|
||||||
@@ -834,9 +835,17 @@ const ArtistAlbums = () => {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'single':
|
case 'single':
|
||||||
displayName = t('releaseType.primary.single', {
|
displayName = (
|
||||||
postProcess: 'sentenceCase',
|
<>
|
||||||
});
|
{t('releaseType.primary.single', {
|
||||||
|
postProcess: 'sentenceCase',
|
||||||
|
})}
|
||||||
|
<Separator />
|
||||||
|
{t('releaseType.primary.ep', {
|
||||||
|
postProcess: 'upperCase',
|
||||||
|
})}
|
||||||
|
</>
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
displayName = releaseType;
|
displayName = releaseType;
|
||||||
|
|||||||
Reference in New Issue
Block a user