From 14c31926a14aa1fa47901fdefdd6da47f148560b Mon Sep 17 00:00:00 2001
From: Roie Natan
Date: Mon, 23 Oct 2023 15:48:09 +0100
Subject: [PATCH] bring back withJoinRequest
---
.../components/CommonEntranceJoin/CommonEntranceJoin.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/pages/common/components/CommonTabPanels/components/AboutTab/components/CommonEntranceInfo/components/CommonEntranceJoin/CommonEntranceJoin.tsx b/src/pages/common/components/CommonTabPanels/components/AboutTab/components/CommonEntranceInfo/components/CommonEntranceJoin/CommonEntranceJoin.tsx
index c823fa7709..95d06595b2 100644
--- a/src/pages/common/components/CommonTabPanels/components/AboutTab/components/CommonEntranceInfo/components/CommonEntranceJoin/CommonEntranceJoin.tsx
+++ b/src/pages/common/components/CommonTabPanels/components/AboutTab/components/CommonEntranceInfo/components/CommonEntranceJoin/CommonEntranceJoin.tsx
@@ -14,7 +14,7 @@ interface CommonEntranceJoinProps {
}
const CommonEntranceJoin: FC = (props) => {
- const { common, isProject } = props;
+ const { withJoinRequest, common, isProject } = props;
const history = useHistory();
const {
parentCommon,
@@ -68,7 +68,7 @@ const CommonEntranceJoin: FC = (props) => {
page
)}
- {!isProject && (isJoinAllowed || isJoinPending) && (
+ {withJoinRequest && !isProject && (isJoinAllowed || isJoinPending) && (