Skip to content

Commit

Permalink
fix: change squad activeFeed name to reflect new path; (#3608)
Browse files Browse the repository at this point in the history
* fix: change squad activeFeed name to reflect new path;

* fix: update ts type to reflect changes
  • Loading branch information
ilasw authored Oct 2, 2024
1 parent 0a68b0b commit 6b2a95b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
29 changes: 7 additions & 22 deletions packages/shared/src/components/feeds/FeedContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,29 +109,14 @@ const getStyle = (isList: boolean, space: Spaciness): CSSProperties => {
};

const feedNameToHeading: Record<
Exclude<
Extract<
FeedPagesWithMobileLayoutType,
| 'user-upvoted'
| 'user-posts'
| 'squads[handle]'
| 'tags[tag]'
| 'sources[source]'
| 'search-bookmarks'
| 'sources[source]/most-upvoted'
| 'sources[source]/best-discussed'
| 'tags[tag]/most-upvoted'
| 'tags[tag]/best-discussed'
| SharedFeedPage.Custom
| SharedFeedPage.CustomForm
| OtherFeedPage.Explore
| OtherFeedPage.ExploreLatest
| OtherFeedPage.ExploreUpvoted
| OtherFeedPage.ExploreDiscussed
| OtherFeedPage.Tags
| OtherFeedPage.Sources
| OtherFeedPage.Leaderboard
| OtherFeedPage.FeedByIds
| OtherFeedPage.Welcome
| SharedFeedPage.Search
| SharedFeedPage.MyFeed
| SharedFeedPage.Popular
| SharedFeedPage.Upvoted
| OtherFeedPage.Discussed
| OtherFeedPage.Bookmarks
>,
string
> = {
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/lib/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {
export enum OtherFeedPage {
Tag = 'tag',
Tags = 'tags',
Squad = 'squads',
SquadPage = 'squads[handle]',
Squad = 'squadsdiscover',
SquadPage = 'squadsdiscover[id]',
Source = 'source',
Sources = 'sources',
Leaderboard = 'users',
Expand Down

0 comments on commit 6b2a95b

Please sign in to comment.