Skip to content

Commit a9cae2a

Browse files
committed
refactor: drop redundant join button from SmallScreenSidebar
The small-screen community sidebar showed both a CommunityJoinButton and an ellipsis menu side-by-side. Now that the menu's useCommunityActions handles join/leave, the standalone button is redundant here.
1 parent 5d4b9ba commit a9cae2a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/components/communities/community-sidebar.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
import dayjs from "dayjs";
88
import localizedFormat from "dayjs/plugin/localizedFormat";
99
import { MarkdownRenderer } from "../markdown/renderer";
10-
import { CommunityJoinButton } from "./community-join-button";
1110
import { useLinkContext } from "@/src/hooks/navigation-hooks";
1211
import { useCommunityFromStore } from "@/src/stores/communities";
1312
import { LuCakeSlice } from "react-icons/lu";
@@ -158,8 +157,6 @@ export function SmallScreenSidebar({
158157
actions={actions}
159158
aria-label="Community actions"
160159
/>
161-
162-
<CommunityJoinButton communityHandle={communityHandle} />
163160
</div>
164161
</div>
165162

0 commit comments

Comments
 (0)