Merge pull request #12506 from overleaf/msm-check-github-module-frontend

[web] add checks for github and V1 being available

GitOrigin-RevId: 90ba19d41c28bbc96d07825086697d2f946eabcd
This commit is contained in:
Miguel Serrano 2023-04-05 10:45:18 +02:00 committed by Copybot
parent 17a98d756e
commit ea0df8a7dd

View file

@ -192,6 +192,7 @@ function NewProjectButton({
>
{t('upload_project')}
</MenuItem>
{ImportProjectFromGithubMenu && (
<ImportProjectFromGithubMenu
onClick={e =>
handleModalMenuClick(e, {
@ -200,6 +201,7 @@ function NewProjectButton({
})
}
/>
)}
{portalTemplates?.length > 0 ? (
<>
<MenuItem divider />