From a5ff3482e53f694b3488b76ed06e3c5b1ce2b474 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:08:04 +0200 Subject: [PATCH] [bugfix] added missing bl-ranked indicator on maps items --- .../maps/local-maps-list-panel.component.tsx | 1 + .../modal/modal-types/download-maps-modal.component.tsx | 4 +++- .../bsv-playlist-details-modal.component.tsx | 4 +++- .../local-playlist-details-modal.component.tsx | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/maps-playlists-panel/maps/local-maps-list-panel.component.tsx b/src/renderer/components/maps-playlists-panel/maps/local-maps-list-panel.component.tsx index f4a2a642..9b690392 100644 --- a/src/renderer/components/maps-playlists-panel/maps/local-maps-list-panel.component.tsx +++ b/src/renderer/components/maps-playlists-panel/maps/local-maps-list-panel.component.tsx @@ -192,6 +192,7 @@ export const LocalMapsListPanel = forwardRef(({ ve diffs={MapItemComponentPropsMapper.extractMapDiffs({ mapInfo: map.mapInfo, songDetails: map.songDetails })} mapId={map.songDetails?.id} ranked={map.songDetails?.ranked} + blRanked={map.songDetails?.blRanked} autorId={map.songDetails?.uploader.id} likes={map.songDetails?.upVotes} createdAt={map.songDetails?.uploadedAt} diff --git a/src/renderer/components/modal/modal-types/download-maps-modal.component.tsx b/src/renderer/components/modal/modal-types/download-maps-modal.component.tsx index a40e5d50..1048ff17 100644 --- a/src/renderer/components/modal/modal-types/download-maps-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/download-maps-modal.component.tsx @@ -145,7 +145,9 @@ export const DownloadMapsModal: ModalComponent = ({ resolver, duration={map.metadata.duration} hash={map.versions.at(0).hash} likes={map.stats.upvotes} - mapId={map.id} ranked={map.ranked} + mapId={map.id} + ranked={map.ranked} + blRanked={map.blRanked} title={map.name} songAutor={map.metadata.songAuthorName} diffs={MapItemComponentPropsMapper.extractMapDiffs({ bsvMap: map })} diff --git a/src/renderer/components/modal/modal-types/playlist/playlist-details-modal/local-playlist-details-modal.component.tsx b/src/renderer/components/modal/modal-types/playlist/playlist-details-modal/local-playlist-details-modal.component.tsx index e89e6dce..b89d44ec 100644 --- a/src/renderer/components/modal/modal-types/playlist/playlist-details-modal/local-playlist-details-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/playlist/playlist-details-modal/local-playlist-details-modal.component.tsx @@ -72,6 +72,7 @@ export const LocalPlaylistDetailsModal: ModalComponent = ({resolver diffs={MapItemComponentPropsMapper.extractMapDiffs({ mapInfo: map.mapInfo, songDetails: map.songDetails })} mapId={map.songDetails?.id} ranked={map.songDetails?.ranked} + blRanked={map.songDetails?.blRanked} autorId={map.songDetails?.uploader.id} likes={map.songDetails?.upVotes} createdAt={map.songDetails?.uploadedAt}