mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 17:53:44 +00:00
[cm6] add tracking to figure modal submit events (#13917)
GitOrigin-RevId: f0c755e2f336b5f0c6caf283bed69db65a0c3c92
This commit is contained in:
parent
79f07e5626
commit
4d3c4c6ae9
1 changed files with 9 additions and 2 deletions
|
@ -6,6 +6,7 @@ import {
|
||||||
import Icon from '../../../../shared/components/icon'
|
import Icon from '../../../../shared/components/icon'
|
||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
import { sendMB } from '../../../../infrastructure/event-tracking'
|
||||||
|
|
||||||
export const FigureModalFooter: FC<{
|
export const FigureModalFooter: FC<{
|
||||||
onInsert: () => void
|
onInsert: () => void
|
||||||
|
@ -91,7 +92,10 @@ const FigureModalAction: FC<{
|
||||||
bsStyle={null}
|
bsStyle={null}
|
||||||
className="btn-success"
|
className="btn-success"
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onInsert}
|
onClick={() => {
|
||||||
|
onInsert()
|
||||||
|
sendMB('figure-modal-edit')
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{t('done')}
|
{t('done')}
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -104,7 +108,10 @@ const FigureModalAction: FC<{
|
||||||
className="btn-success"
|
className="btn-success"
|
||||||
type="button"
|
type="button"
|
||||||
disabled={getPath === undefined}
|
disabled={getPath === undefined}
|
||||||
onClick={onInsert}
|
onClick={() => {
|
||||||
|
onInsert()
|
||||||
|
sendMB('figure-modal-insert')
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{t('insert_figure')}
|
{t('insert_figure')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Reference in a new issue