From 5b5f684e98477aade4a64e543d6e29adfcba2a05 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 25 Apr 2024 18:39:07 -0400 Subject: [PATCH] Hiding RSS button for saved view on profile page. Fixes #2438 (#2440) --- package.json | 2 +- src/shared/components/person/profile.tsx | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 07f192fc..4c767fe7 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "sortpack" ] }, - "packageManager": "pnpm@9.0.5+sha256.61bd66913b52012107ec25a6ee4d6a161021ab99e04f6acee3aa50d0e34b4af9", + "packageManager": "pnpm@9.0.6+sha256.0624e30eff866cdeb363b15061bdb7fd9425b17bc1bb42c22f5f4efdea21f6b3", "engineStrict": true, "importSort": { ".js, .jsx, .ts, .tsx": { diff --git a/src/shared/components/person/profile.tsx b/src/shared/components/person/profile.tsx index 44dcd709..3ca1f605 100644 --- a/src/shared/components/person/profile.tsx +++ b/src/shared/components/person/profile.tsx @@ -506,7 +506,7 @@ export class Profile extends Component { } get selects() { - const { sort } = this.props; + const { sort, view } = this.props; const { username } = this.props.match.params; const profileRss = `/feeds/u/${username}.xml${getQueryString({ sort })}`; @@ -522,12 +522,19 @@ export class Profile extends Component { hideMostComments /> -
- - - - -
+ {/* Don't show the rss feed for the Saved view, as that's not implemented.*/} + {view !== PersonDetailsView.Saved && ( +
+ + + + +
+ )} ); }