mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
[cm6] add tracking to figure modal submit events (#13917)
GitOrigin-RevId: f0c755e2f336b5f0c6caf283bed69db65a0c3c92
This commit is contained in:
committed by
Copybot
parent
946ba991f2
commit
b84e3200ca
@@ -6,6 +6,7 @@ import {
|
||||
import Icon from '../../../../shared/components/icon'
|
||||
import { FC } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { sendMB } from '../../../../infrastructure/event-tracking'
|
||||
|
||||
export const FigureModalFooter: FC<{
|
||||
onInsert: () => void
|
||||
@@ -91,7 +92,10 @@ const FigureModalAction: FC<{
|
||||
bsStyle={null}
|
||||
className="btn-success"
|
||||
type="button"
|
||||
onClick={onInsert}
|
||||
onClick={() => {
|
||||
onInsert()
|
||||
sendMB('figure-modal-edit')
|
||||
}}
|
||||
>
|
||||
{t('done')}
|
||||
</Button>
|
||||
@@ -104,7 +108,10 @@ const FigureModalAction: FC<{
|
||||
className="btn-success"
|
||||
type="button"
|
||||
disabled={getPath === undefined}
|
||||
onClick={onInsert}
|
||||
onClick={() => {
|
||||
onInsert()
|
||||
sendMB('figure-modal-insert')
|
||||
}}
|
||||
>
|
||||
{t('insert_figure')}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user