mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(frontend): proper styling for "Top Artists" report
This commit is contained in:
parent
b6b468f3ed
commit
ca4e10e473
2 changed files with 25 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import { TimePreset } from "../api/entities/time-preset.enum";
|
|||
import { useTopArtists } from "../hooks/use-api";
|
||||
import { useAuth } from "../hooks/use-auth";
|
||||
import { ReportTimeOptions } from "./ReportTimeOptions";
|
||||
import { TopListItem } from "./TopListItem";
|
||||
|
||||
export const ReportTopArtists: React.FC = () => {
|
||||
const { user } = useAuth();
|
||||
|
|
@ -53,9 +54,7 @@ export const ReportTopArtists: React.FC = () => {
|
|||
)}
|
||||
{reportHasItems &&
|
||||
topArtists.map(({ artist, count }) => (
|
||||
<div key={artist.id}>
|
||||
{count} - {artist.name}
|
||||
</div>
|
||||
<TopListItem key={artist.id} title={artist.name} count={count} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue