mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
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:
@@ -192,14 +192,16 @@ function NewProjectButton({
|
||||
>
|
||||
{t('upload_project')}
|
||||
</MenuItem>
|
||||
<ImportProjectFromGithubMenu
|
||||
onClick={e =>
|
||||
handleModalMenuClick(e, {
|
||||
modalVariant: 'import_from_github',
|
||||
dropdownMenuEvent: 'import-from-github',
|
||||
})
|
||||
}
|
||||
/>
|
||||
{ImportProjectFromGithubMenu && (
|
||||
<ImportProjectFromGithubMenu
|
||||
onClick={e =>
|
||||
handleModalMenuClick(e, {
|
||||
modalVariant: 'import_from_github',
|
||||
dropdownMenuEvent: 'import-from-github',
|
||||
})
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{portalTemplates?.length > 0 ? (
|
||||
<>
|
||||
<MenuItem divider />
|
||||
|
||||
Reference in New Issue
Block a user