Skip to content

Commit

Permalink
default communities search sort to TopAll
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar committed Dec 6, 2023
1 parent 642c64e commit 1bb1a42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/search/results/SearchCommunitiesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export default function SearchCommunitiesPage() {
const client = useClient();
const [sort, setSort] = usePostSort();

setSort("TopAll");

const search = decodeURIComponent(_encodedSearch);

const fetchFn: FetchFn<CommunityView> = useCallback(
Expand Down Expand Up @@ -63,7 +65,7 @@ export default function SearchCommunitiesPage() {
<IonTitle>{search}</IonTitle>

<IonButtons slot="end">
<PostSort sort={sort} setSort={setSort} />
{/* <PostSort sort={sort} setSort={setSort} /> */}
</IonButtons>
</IonToolbar>
</IonHeader>
Expand Down

0 comments on commit 1bb1a42

Please sign in to comment.