From b05172453cf768105878ca5aa474f47ec6b57336 Mon Sep 17 00:00:00 2001 From: lianahus Date: Mon, 10 Oct 2022 16:17:49 +0200 Subject: [PATCH] learneth strat tutorial --- .../home-tab/src/lib/components/homeTabLearn.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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. - +
} + } + }