From fe766694a011baa86d814c6bf66230db238459d8 Mon Sep 17 00:00:00 2001 From: Abhishek P Anil Date: Mon, 25 Sep 2023 18:06:02 +0530 Subject: [PATCH] fix: artsdata links redirection url added --- .env.production | 4 ++++ .env.staging | 1 + src/components/Card/Common/EntityCard.jsx | 18 ++++++++++-------- .../SearchOrganizations.jsx | 2 +- .../Dashboard/SearchPlaces/SearchPlaces.jsx | 2 +- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.env.production b/.env.production index afdc5d6a7..864126c7f 100644 --- a/.env.production +++ b/.env.production @@ -1,9 +1,13 @@ REACT_APP_API_URL="https://api.cms.footlight.io" +REACT_APP_ARTS_DATA_URI="https://api.artsdata.ca/" +REACT_APP_ARTS_DATA_PAGE_URI="https://kg.artsdata.ca/resource/" REACT_APP_DEEPL_URL="https://www.deepl.com/translator#" REACT_APP_HELP_EN_URL="https://footlight.gitbook.io/footlight-cms-guide" REACT_APP_HELP_FR_URL="https://footlight.gitbook.io/guide-footlight-cms" REACT_APP_FEATURE_FLAG_QUICK_CREATE_ORGANIZATION=true REACT_APP_FEATURE_FLAG_ORG_PERSON_PLACE_VIEW=true REACT_APP_FEATURE_FLAG_QUICK_CREATE_PEOPLE_PLACE=true +REACT_APP_FEATURE_FLAG_EDIT_SCREEN_PEOPLE_PLACE_ORGANIZATION=false +REACT_APP_FEATURE_FLAG_USERS=false REACT_APP_FEATURE_FLAG_IMAGE_CROP=false REACT_APP_ENV="production" diff --git a/.env.staging b/.env.staging index 29de63f30..46360b4d2 100644 --- a/.env.staging +++ b/.env.staging @@ -1,5 +1,6 @@ REACT_APP_API_URL="https://staging.api.cms.footlight.io" REACT_APP_ARTS_DATA_URI="https://api.artsdata.ca/" +REACT_APP_ARTS_DATA_PAGE_URI="https://kg.artsdata.ca/resource/" REACT_APP_DEEPL_URL="https://www.deepl.com/translator#" REACT_APP_HELP_EN_URL="https://footlight.gitbook.io/footlight-cms-guide" REACT_APP_HELP_FR_URL="https://footlight.gitbook.io/guide-footlight-cms" diff --git a/src/components/Card/Common/EntityCard.jsx b/src/components/Card/Common/EntityCard.jsx index 2b4fc4598..4eca1c1a3 100644 --- a/src/components/Card/Common/EntityCard.jsx +++ b/src/components/Card/Common/EntityCard.jsx @@ -13,14 +13,16 @@ const EntityCard = (props) => {
{description}
- { - e.stopPropagation(); - window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer'); - }}> - {linkText} - - + {artsDataLink && ( + { + e.stopPropagation(); + window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer'); + }}> + {linkText} + + + )}
); diff --git a/src/pages/Dashboard/SearchOrganizations/SearchOrganizations.jsx b/src/pages/Dashboard/SearchOrganizations/SearchOrganizations.jsx index 771992568..00fed2abe 100644 --- a/src/pages/Dashboard/SearchOrganizations/SearchOrganizations.jsx +++ b/src/pages/Dashboard/SearchOrganizations/SearchOrganizations.jsx @@ -157,7 +157,7 @@ function SearchOrganizations() { : } linkText={t('dashboard.organization.createNew.search.linkText')} onClick={() => artsDataClickHandler(organizer)} diff --git a/src/pages/Dashboard/SearchPlaces/SearchPlaces.jsx b/src/pages/Dashboard/SearchPlaces/SearchPlaces.jsx index 9d655f3c3..bc71c23b9 100644 --- a/src/pages/Dashboard/SearchPlaces/SearchPlaces.jsx +++ b/src/pages/Dashboard/SearchPlaces/SearchPlaces.jsx @@ -160,7 +160,7 @@ function SearchPlaces() {