|
|
@@ -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)
|