From ea0df8a7ddb3b3ff7a492bd8a989326dd52b75e8 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Wed, 5 Apr 2023 10:45:18 +0200 Subject: [PATCH] Merge pull request #12506 from overleaf/msm-check-github-module-frontend [web] add checks for github and V1 being available GitOrigin-RevId: 90ba19d41c28bbc96d07825086697d2f946eabcd --- .../components/new-project-button.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/services/web/frontend/js/features/project-list/components/new-project-button.tsx b/services/web/frontend/js/features/project-list/components/new-project-button.tsx index ed78820df4..fbc350e87a 100644 --- a/services/web/frontend/js/features/project-list/components/new-project-button.tsx +++ b/services/web/frontend/js/features/project-list/components/new-project-button.tsx @@ -192,14 +192,16 @@ function NewProjectButton({ > {t('upload_project')} - - handleModalMenuClick(e, { - modalVariant: 'import_from_github', - dropdownMenuEvent: 'import-from-github', - }) - } - /> + {ImportProjectFromGithubMenu && ( + + handleModalMenuClick(e, { + modalVariant: 'import_from_github', + dropdownMenuEvent: 'import-from-github', + }) + } + /> + )} {portalTemplates?.length > 0 ? ( <>