mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #5985 from overleaf/jel-detached-event
Analytics event when PDF detach layout setup done GitOrigin-RevId: 9f20a339ed9a45f9d85e1872454fe50236178aac
This commit is contained in:
parent
e8a4a88e87
commit
c849b8f244
1 changed files with 9 additions and 0 deletions
|
@ -29,6 +29,15 @@ export default function useDetachLayout() {
|
|||
setIsLinking(false)
|
||||
}, [isLinked, setIsLinking])
|
||||
|
||||
useEffect(() => {
|
||||
if (debugPdfDetach) {
|
||||
console.log('Effect', { role, isLinked })
|
||||
}
|
||||
if (role === 'detached' && isLinked) {
|
||||
eventTracking.sendMB('project-layout-detached')
|
||||
}
|
||||
}, [role, isLinked])
|
||||
|
||||
useEffect(() => {
|
||||
if (uiTimeoutRef.current) {
|
||||
clearTimeout(uiTimeoutRef.current)
|
||||
|
|
Loading…
Reference in a new issue