diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx index 8d92fa9bfb..747743f5d6 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx @@ -30,10 +30,11 @@ function HomeTabLearn ({plugin}: HomeTabLearnProps) { window.open("https://remix-ide.readthedocs.io/en/latest/remix_tutorials_learneth.html?highlight=learneth#learneth-tutorial-repos", '_blank') } - const startLearnEth = async () => { + const startLearnEthTutorial = async (tutorial) => { await plugin.appManager.activatePlugin(['solidity', 'LearnEth', 'solidityUnitTesting']) + plugin.call('LearnEth', 'startTutorial', 'ethereum/remix-workshops', 'master', tutorial) plugin.verticalIcons.select('LearnEth') - _paq.push(['trackEvent', 'homeTab', 'startLearnEth']) + _paq.push(['trackEvent', 'homeTab', 'startLearnEthTutorial']) } return ( @@ -52,19 +53,19 @@ function HomeTabLearn ({plugin}: HomeTabLearnProps) { {(state.visibleTutorial === VisibleTutorial.Basics) &&
Introduction to Remix's interface and concepts used in Ethereum, as well as the basics of Solidity. - +
} + } + }