|
|
@@ -7,6 +7,7 @@ import { useProjectListContext } from '../../../../context/project-list-context'
|
|
|
import * as eventTracking from '../../../../../../infrastructure/event-tracking'
|
|
|
import { ClonedProject } from '../../../../../../../../types/project/dashboard/api'
|
|
|
import { useProjectTags } from '@/features/project-list/hooks/use-project-tags'
|
|
|
+import { isMobileDevice } from '../../../../../../infrastructure/event-tracking'
|
|
|
|
|
|
function CopyProjectMenuItem() {
|
|
|
const {
|
|
|
@@ -33,7 +34,11 @@ function CopyProjectMenuItem() {
|
|
|
const handleAfterCloned = useCallback(
|
|
|
(clonedProject: ClonedProject, tags: { _id: string }[]) => {
|
|
|
const project = selectedProjects[0]
|
|
|
- eventTracking.sendMB('project-list-page-interaction', { action: 'clone' })
|
|
|
+ eventTracking.sendMB('project-list-page-interaction', {
|
|
|
+ action: 'clone',
|
|
|
+ projectId: project.id,
|
|
|
+ isMobileDevice,
|
|
|
+ })
|
|
|
addClonedProjectToViewData(clonedProject)
|
|
|
for (const tag of tags) {
|
|
|
addProjectToTagInView(tag._id, clonedProject.project_id)
|