mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #9466 from overleaf/jk-add-labs-program-for-galileo
[web] Add a new "Overleaf Labs" program, for Galileo GitOrigin-RevId: 8f6c79c37c1719a59bd8405998cc3de2fd29960d
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { useTranslation, Trans } from 'react-i18next'
|
||||
import { useUserContext } from '../../../shared/context/user-context'
|
||||
|
||||
function LabsProgramSection() {
|
||||
const { t } = useTranslation()
|
||||
const { labsProgram } = useUserContext()
|
||||
|
||||
return (
|
||||
<>
|
||||
<h3>{t('overleaf_labs')}</h3>
|
||||
{labsProgram ? null : (
|
||||
<p className="small">
|
||||
<Trans i18nKey="labs_program_benefits">
|
||||
<span />
|
||||
</Trans>
|
||||
</p>
|
||||
)}
|
||||
<p className="small">
|
||||
{labsProgram
|
||||
? t('labs_program_already_participating')
|
||||
: t('labs_program_not_participating')}
|
||||
</p>
|
||||
<a href="/labs/participate">{t('manage_labs_program_membership')}</a>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default LabsProgramSection
|
||||
Reference in New Issue
Block a user