Skip to content

Commit

Permalink
Update ExerciseGuidedExperience.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygonzaleza authored Oct 10, 2024
1 parent db88059 commit a0a6358
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/js_modules/syllabus/ExerciseGuidedExperience.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Heading from '../../common/components/Heading';
import Text from '../../common/components/Text';
import Icon from '../../common/components/Icon';
import { intervalToHours } from '../../utils';
import { reportDatalayer } from '../../utils/requests';
// import modifyEnv from '../../../modifyEnv';
// import useCohortHandler from '../../common/hooks/useCohortHandler';
// import NextChakraLink from '../../common/components/NextChakraLink';
Expand Down Expand Up @@ -194,7 +195,15 @@ function ExerciseGuidedExperience({ currentTask, currentAsset }) {
borderColor="white"
color="white"
whiteSpace="normal"
onClick={() => setShowCloneModal(true)}
onClick={() => {
reportDatalayer({
dataLayer: {
event: 'open_learnpack_locally',
asset_slug: currentAsset?.slug,
},
});
setShowCloneModal(true)
}}
fontSize="17px"
>
{t('common:learnpack.open-locally')}
Expand Down

0 comments on commit a0a6358

Please sign in to comment.