mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-31 02:00:07 +02:00

Remove proptypes from editor-navigation-toolbar components GitOrigin-RevId: 77a1c4e13e3da6c06bb515b0137da2f70bfdf4a8
27 lines
744 B
TypeScript
27 lines
744 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import * as eventTracking from '../../../infrastructure/event-tracking'
|
|
import OLButton from '@/features/ui/components/ol/ol-button'
|
|
|
|
function UpgradePrompt() {
|
|
const { t } = useTranslation()
|
|
|
|
function handleClick() {
|
|
eventTracking.send('subscription-funnel', 'code-editor', 'upgrade')
|
|
eventTracking.sendMB('upgrade-button-click', { source: 'code-editor' })
|
|
}
|
|
|
|
return (
|
|
<OLButton
|
|
variant="primary"
|
|
size="sm"
|
|
className="toolbar-header-upgrade-prompt"
|
|
href="/user/subscription/plans?itm_referrer=editor-header-upgrade-prompt"
|
|
target="_blank"
|
|
onClick={handleClick}
|
|
>
|
|
{t('upgrade')}
|
|
</OLButton>
|
|
)
|
|
}
|
|
|
|
export default UpgradePrompt
|