optimizations
This commit is contained in:
@@ -52,10 +52,14 @@ export default function ProfileShow() {
|
||||
socialLinks,
|
||||
followerCount,
|
||||
recentFollowers,
|
||||
followContext,
|
||||
followAnalytics,
|
||||
suggestedUsers,
|
||||
viewerIsFollowing,
|
||||
heroBgUrl,
|
||||
profileComments,
|
||||
creatorStories,
|
||||
collections,
|
||||
achievements,
|
||||
leaderboardRank,
|
||||
countryName,
|
||||
@@ -64,6 +68,10 @@ export default function ProfileShow() {
|
||||
initialTab,
|
||||
profileUrl,
|
||||
galleryUrl,
|
||||
collectionCreateUrl,
|
||||
collectionReorderUrl,
|
||||
collectionsFeaturedUrl,
|
||||
collectionFeatureLimit,
|
||||
profileTabUrls,
|
||||
} = props
|
||||
|
||||
@@ -137,13 +145,15 @@ export default function ProfileShow() {
|
||||
isOwner={isOwner}
|
||||
viewerIsFollowing={viewerIsFollowing}
|
||||
followerCount={followerCount}
|
||||
recentFollowers={recentFollowers}
|
||||
followContext={followContext}
|
||||
heroBgUrl={heroBgUrl}
|
||||
countryName={countryName}
|
||||
leaderboardRank={leaderboardRank}
|
||||
extraActions={galleryUrl ? (
|
||||
<a
|
||||
href={galleryUrl}
|
||||
className="inline-flex items-center gap-2 rounded-xl border border-white/15 px-4 py-2.5 text-sm font-medium text-slate-300 transition-all hover:bg-white/5 hover:text-white"
|
||||
className="inline-flex shrink-0 items-center gap-2 whitespace-nowrap rounded-xl border border-white/15 px-3.5 py-2 text-sm font-medium text-slate-300 transition-all hover:bg-white/5 hover:text-white"
|
||||
>
|
||||
<i className="fa-solid fa-images fa-fw" />
|
||||
View Gallery
|
||||
@@ -178,6 +188,7 @@ export default function ProfileShow() {
|
||||
stats={stats}
|
||||
followerCount={followerCount}
|
||||
recentFollowers={recentFollowers}
|
||||
suggestedUsers={suggestedUsers}
|
||||
socialLinks={socialLinksObj}
|
||||
countryName={countryName}
|
||||
profileUrl={profileUrl}
|
||||
@@ -194,7 +205,14 @@ export default function ProfileShow() {
|
||||
<TabAchievements achievements={achievements} />
|
||||
)}
|
||||
{activeTab === 'collections' && (
|
||||
<TabCollections collections={[]} />
|
||||
<TabCollections
|
||||
collections={collections}
|
||||
isOwner={isOwner}
|
||||
createUrl={collectionCreateUrl}
|
||||
reorderUrl={collectionReorderUrl}
|
||||
featuredUrl={collectionsFeaturedUrl}
|
||||
featureLimit={collectionFeatureLimit}
|
||||
/>
|
||||
)}
|
||||
{activeTab === 'about' && (
|
||||
<TabAbout
|
||||
@@ -216,6 +234,7 @@ export default function ProfileShow() {
|
||||
<TabStats
|
||||
stats={stats}
|
||||
followerCount={followerCount}
|
||||
followAnalytics={followAnalytics}
|
||||
/>
|
||||
)}
|
||||
{activeTab === 'favourites' && (
|
||||
@@ -231,6 +250,9 @@ export default function ProfileShow() {
|
||||
user={user}
|
||||
isOwner={isOwner}
|
||||
isLoggedIn={isLoggedIn}
|
||||
stats={stats}
|
||||
followerCount={followerCount}
|
||||
creatorStories={creatorStories}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user