Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ const CommunityCard = ({ logo, name, body, id, slug, hideJoin }) => {
className="is-flex is-align-items-center mr-2"
style={{ maxWidth: 40 }}
>
<JoinCommunityButton communityId={id} />
<JoinCommunityButton
communityId={id}
hasTooltip={isNotMobile}
/>
</div>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function JoinCommunityButton({
onLeaveCommunity = async () => {},
onJoinCommunity = async () => {},
size = 'small',
hasTooltip = false,
}) {
const [isModalErrorOpened, setIsModalErrorOpened] = useState(false);
const { createCommunityUser, deleteUserFromCommunity } = useJoinCommunity();
Expand Down Expand Up @@ -109,7 +110,7 @@ export default function JoinCommunityButton({
>
<Svg name="Eye" />
<Svg name="HideEye" />
{!isMember && (
{!isMember && hasTooltip && (
<span className="join-community-cta py-2 px-4 rounded-lg has-text-white has-background-black smaller-text">
Watch this community
</span>
Expand Down