diff --git a/packages/web/src/components/collection/desktop/CollectionHeader.tsx b/packages/web/src/components/collection/desktop/CollectionHeader.tsx index 702e6660318..5c9e74c0503 100644 --- a/packages/web/src/components/collection/desktop/CollectionHeader.tsx +++ b/packages/web/src/components/collection/desktop/CollectionHeader.tsx @@ -100,7 +100,6 @@ export const CollectionHeader = (props: CollectionHeaderProps) => { type, title, coverArtSizes, - artistName, description, isOwner, releaseDate, @@ -161,7 +160,7 @@ export const CollectionHeader = (props: CollectionHeaderProps) => { }, [onOpen, collectionId]) const renderStatsRow = (isLoading: boolean) => { - if (isLoading) return null + if (isLoading) return return ( { const isLoading = !isSsrEnabled && (loading || artworkLoading) - const fadeIn = { - [styles.show]: !isLoading, - [styles.hide]: isLoading - } - const isPremium = isStreamGated && isContentUSDCPurchaseGated(streamConditions) const topSection = ( - {coverArtSizes || gradient || icon ? ( - - ) : null} - + + - - {!isPublished ? ( - - ) : null} - {isPremium ? : null} - - {isPremium ? `${messages.premiumLabel} ` : ''} - {type === 'playlist' && !isPublished - ? messages.hiddenPlaylistLabel - : type} - - + {isLoading ? ( + + ) : ( + + {!isPublished ? ( + + ) : null} + {isPremium ? : null} + + {isPremium ? `${messages.premiumLabel} ` : ''} + {type === 'playlist' && !isPublished + ? messages.hiddenPlaylistLabel + : type} + + + )} { })} onClick={isOwner ? handleClickEditTitle : undefined} > - - {title} - - - {isOwner ? ( - - ) : null} - {isLoading ? ( - - ) : null} + + ) : ( + <> + + {title} + + + {!isLoading && isOwner ? ( + + ) : null} + + + )} - {artistName ? ( - + {isLoading ? ( + + ) : ( + {messages.by} {userId !== null ? ( ) : null} - ) : null} + )} - {isLoading ? ( - - ) : null}
{renderStatsRow(isLoading)}
- + {isLoading ? ( + + ) : ( + + )}
{onFilterChange ? ( @@ -327,28 +327,31 @@ export const CollectionHeader = (props: CollectionHeaderProps) => { /> ) : null} - - {description ? ( - - {description} - - ) : null} - - + {isLoading ? ( + + ) : ( + + {description ? ( + + {description} + + ) : null} + + + )}
) return ( - + {topSection} {descriptionSection} diff --git a/packages/web/src/components/tracks-table/TracksTable.tsx b/packages/web/src/components/tracks-table/TracksTable.tsx index 7972a60d205..20aaa65982d 100644 --- a/packages/web/src/components/tracks-table/TracksTable.tsx +++ b/packages/web/src/components/tracks-table/TracksTable.tsx @@ -460,6 +460,7 @@ export const TracksTable = ({ }, [ trackAccessMap, + shouldShowGatedType, disabledTrackEdit, isAlbumPage, onClickRemove, diff --git a/packages/web/src/pages/collection-page/components/desktop/CollectionPage.tsx b/packages/web/src/pages/collection-page/components/desktop/CollectionPage.tsx index 90fe31de292..92dd35b10da 100644 --- a/packages/web/src/pages/collection-page/components/desktop/CollectionPage.tsx +++ b/packages/web/src/pages/collection-page/components/desktop/CollectionPage.tsx @@ -150,7 +150,8 @@ const CollectionPage = ({ const collectionLoading = status === Status.LOADING const queuedAndPlaying = playing && isQueued() const queuedAndPreviewing = previewing && isQueued() - const tracksLoading = tracks.status === Status.LOADING + const tracksLoading = + tracks.status === Status.LOADING || tracks.status === Status.IDLE const coverArtSizes = metadata && metadata?.variant !== Variant.SMART @@ -370,7 +371,7 @@ const CollectionPage = ({ )} - {isOwner && !isAlbum && !isNftPlaylist ? ( + {!collectionLoading && isOwner && !isAlbum && !isNftPlaylist ? ( <>