[FEAT] review and normailise title of the topBar
Signed-off-by: Edouard DUPIN <yui.heero@gmail.com>
This commit is contained in:
parent
4eff2e55ef
commit
693d59ab68
@ -45,7 +45,7 @@ export const AlbumDetailPage = () => {
|
|||||||
if (!dataAlbum) {
|
if (!dataAlbum) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="Album detail" />
|
<TopBar title="Album detail" titleLink="/album" />
|
||||||
<PageLayoutInfoCenter>
|
<PageLayoutInfoCenter>
|
||||||
Fail to load artist id: {albumId}
|
Fail to load artist id: {albumId}
|
||||||
</PageLayoutInfoCenter>
|
</PageLayoutInfoCenter>
|
||||||
@ -54,7 +54,7 @@ export const AlbumDetailPage = () => {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="Album detail">
|
<TopBar title="Album detail" titleLink="/album">
|
||||||
<Button
|
<Button
|
||||||
{...BUTTON_TOP_BAR_PROPERTY}
|
{...BUTTON_TOP_BAR_PROPERTY}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
|
@ -28,7 +28,7 @@ export const AlbumsPage = () => {
|
|||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="All Albums" />
|
<TopBar title="All Albums" titleLink="/home" />
|
||||||
<PageLayoutInfoCenter>No Album available</PageLayoutInfoCenter>
|
<PageLayoutInfoCenter>No Album available</PageLayoutInfoCenter>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
@ -36,7 +36,7 @@ export const AlbumsPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="All Albums">
|
<TopBar title="All Albums" titleLink="/home">
|
||||||
<SearchInput onChange={setFilterTitle} />
|
<SearchInput onChange={setFilterTitle} />
|
||||||
</TopBar>
|
</TopBar>
|
||||||
<PageLayout>
|
<PageLayout>
|
||||||
|
@ -55,33 +55,27 @@ export const ArtistAlbumDetailPage = () => {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title={dataArtist ? undefined : 'Album detail'}>
|
<TopBar
|
||||||
|
title={dataArtist ? dataArtist?.name : 'Album detail'}
|
||||||
|
titleLink={dataArtist ? `/artist/${dataArtist.id}` : undefined}
|
||||||
|
titleIcon={
|
||||||
|
<Covers
|
||||||
|
data={dataArtist?.covers}
|
||||||
|
size="35px"
|
||||||
|
borderRadius="full"
|
||||||
|
iconEmpty={<MdPerson />}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
{dataArtist && (
|
{dataArtist && (
|
||||||
<>
|
<Button
|
||||||
<Button
|
{...BUTTON_TOP_BAR_PROPERTY}
|
||||||
{...BUTTON_TOP_BAR_PROPERTY}
|
onClick={() =>
|
||||||
marginRight="auto"
|
navigate(`/album/${albumId}/edit-album/${dataAlbum.id}`)
|
||||||
onClick={() => navigate(`/artist/${dataArtist.id}`)}
|
}
|
||||||
>
|
>
|
||||||
<Covers
|
<MdEdit />
|
||||||
data={dataArtist?.covers}
|
</Button>
|
||||||
size="35px"
|
|
||||||
borderRadius="full"
|
|
||||||
iconEmpty={<MdPerson />}
|
|
||||||
/>
|
|
||||||
<Text fontSize="24px" fontWeight="bold">
|
|
||||||
{dataArtist?.name}
|
|
||||||
</Text>
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
{...BUTTON_TOP_BAR_PROPERTY}
|
|
||||||
onClick={() =>
|
|
||||||
navigate(`/album/${albumId}/edit-album/${dataAlbum.id}`)
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<MdEdit />
|
|
||||||
</Button>
|
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</TopBar>
|
</TopBar>
|
||||||
<PageLayout>
|
<PageLayout>
|
||||||
|
@ -32,7 +32,7 @@ export const ArtistDetailPage = () => {
|
|||||||
if (!dataArtist) {
|
if (!dataArtist) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="Artist detail" />
|
<TopBar title="Artists" titleLink="/artist" />
|
||||||
<PageLayoutInfoCenter>
|
<PageLayoutInfoCenter>
|
||||||
Fail to load artist id: {artistId}
|
Fail to load artist id: {artistId}
|
||||||
</PageLayoutInfoCenter>
|
</PageLayoutInfoCenter>
|
||||||
@ -41,19 +41,12 @@ export const ArtistDetailPage = () => {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar>
|
<TopBar
|
||||||
|
title="Artists"
|
||||||
|
titleLink="/artist/all"
|
||||||
|
titleIcon={<MdGroup height="full" />}
|
||||||
|
>
|
||||||
<>
|
<>
|
||||||
<Button
|
|
||||||
{...BUTTON_TOP_BAR_PROPERTY}
|
|
||||||
marginRight="auto"
|
|
||||||
onClick={() => navigate(`/artist/all`)}
|
|
||||||
>
|
|
||||||
<MdGroup height="full" />
|
|
||||||
<Text fontSize="24px" fontWeight="bold">
|
|
||||||
Artists
|
|
||||||
</Text>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
{...BUTTON_TOP_BAR_PROPERTY}
|
{...BUTTON_TOP_BAR_PROPERTY}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
|
@ -63,7 +63,7 @@ export const ArtistsPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="All artists">
|
<TopBar title="All artists" titleLink="/home">
|
||||||
<SearchInput onChange={setFilterName} />
|
<SearchInput onChange={setFilterName} />
|
||||||
<Tooltip.Root aria-label="Random play">
|
<Tooltip.Root aria-label="Random play">
|
||||||
<Button {...BUTTON_TOP_BAR_PROPERTY} onClick={onRandomPlay}>
|
<Button {...BUTTON_TOP_BAR_PROPERTY} onClick={onRandomPlay}>
|
||||||
|
@ -45,7 +45,7 @@ export const GenderDetailPage = () => {
|
|||||||
if (!dataGender) {
|
if (!dataGender) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="Gender detail" />
|
<TopBar title="Gender detail" titleLink="/gender" />
|
||||||
<PageLayoutInfoCenter>
|
<PageLayoutInfoCenter>
|
||||||
Fail to load artist id: {genderId}
|
Fail to load artist id: {genderId}
|
||||||
</PageLayoutInfoCenter>
|
</PageLayoutInfoCenter>
|
||||||
@ -54,7 +54,7 @@ export const GenderDetailPage = () => {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="Gender detail">
|
<TopBar title="Gender detail" titleLink="/gender">
|
||||||
<Button
|
<Button
|
||||||
{...BUTTON_TOP_BAR_PROPERTY}
|
{...BUTTON_TOP_BAR_PROPERTY}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
|
@ -23,7 +23,7 @@ export const GendersPage = () => {
|
|||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="All Genders" />
|
<TopBar title="All Genders" titleLink="/home" />
|
||||||
<PageLayoutInfoCenter>No Gender available</PageLayoutInfoCenter>
|
<PageLayoutInfoCenter>No Gender available</PageLayoutInfoCenter>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
@ -31,7 +31,7 @@ export const GendersPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="All Genders">
|
<TopBar title="All Genders" titleLink="/home">
|
||||||
<SearchInput onChange={setFilterTitle} />
|
<SearchInput onChange={setFilterTitle} />
|
||||||
</TopBar>
|
</TopBar>
|
||||||
<PageLayout>
|
<PageLayout>
|
||||||
|
@ -97,7 +97,7 @@ export const OnAirPage = () => {
|
|||||||
if (!playTrackList || playTrackList.length == 0) {
|
if (!playTrackList || playTrackList.length == 0) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="Album detail" />
|
<TopBar title="On Air ..." titleLink="/home" />
|
||||||
<PageLayoutInfoCenter>
|
<PageLayoutInfoCenter>
|
||||||
No data is currently playing...
|
No data is currently playing...
|
||||||
</PageLayoutInfoCenter>
|
</PageLayoutInfoCenter>
|
||||||
@ -106,7 +106,7 @@ export const OnAirPage = () => {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="On Air ...">
|
<TopBar title="On Air ..." titleLink="/home">
|
||||||
<Button {...BUTTON_TOP_BAR_PROPERTY} onClick={clean}>
|
<Button {...BUTTON_TOP_BAR_PROPERTY} onClick={clean}>
|
||||||
<LuTrash2 />
|
<LuTrash2 />
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -42,7 +42,7 @@ export const TrackSelectionPage = () => {
|
|||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TopBar title="All Tracks" />
|
<TopBar title="All Tracks" titleLink="/home" />
|
||||||
<PageLayout>
|
<PageLayout>
|
||||||
<HStack
|
<HStack
|
||||||
wrap="wrap"
|
wrap="wrap"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user