Skip to content

Commit

Permalink
bring back withJoinRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
roienatan committed Oct 23, 2023
1 parent bfd5174 commit 14c3192
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface CommonEntranceJoinProps {
}

const CommonEntranceJoin: FC<CommonEntranceJoinProps> = (props) => {
const { common, isProject } = props;
const { withJoinRequest, common, isProject } = props;
const history = useHistory();
const {
parentCommon,
Expand Down Expand Up @@ -68,7 +68,7 @@ const CommonEntranceJoin: FC<CommonEntranceJoinProps> = (props) => {
page
</p>
)}
{!isProject && (isJoinAllowed || isJoinPending) && (
{withJoinRequest && !isProject && (isJoinAllowed || isJoinPending) && (
<Button
className={styles.joinButton}
variant={ButtonVariant.OutlineDarkPink}
Expand Down

0 comments on commit 14c3192

Please sign in to comment.