|
|
|
@ -31,7 +31,7 @@ function HomeTabLearn ({plugin}: HomeTabLearnProps) { |
|
|
|
|
window.open("https://remix-ide.readthedocs.io/en/latest/remix_tutorials_learneth.html?highlight=learneth#learneth-tutorial-repos", '_blank') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const startLearnEthTutorial = async (tutorial: 'basics' | 'useofweb3js' | 'deploylibraries') => { |
|
|
|
|
const startLearnEthTutorial = async (tutorial: 'basics' | 'soliditybeginner' | 'deploylibraries') => { |
|
|
|
|
await plugin.appManager.activatePlugin(['solidity', 'LearnEth', 'solidityUnitTesting']) |
|
|
|
|
plugin.verticalIcons.select('LearnEth') |
|
|
|
|
plugin.call('LearnEth', 'startTutorial', 'ethereum/remix-workshops', 'master', tutorial) |
|
|
|
@ -74,7 +74,7 @@ function HomeTabLearn ({plugin}: HomeTabLearnProps) { |
|
|
|
|
{(state.visibleTutorial === VisibleTutorial.Intermediate) && <div className="pt-2 d-flex flex-column text-left"> |
|
|
|
|
<span> |
|
|
|
|
<FormattedMessage id="home.learnEth2Desc" /></span> |
|
|
|
|
<button className="btn btn-sm btn-secondary mt-2" style={{width: 'fit-content'}} onClick={() => startLearnEthTutorial('useofweb3js')}> |
|
|
|
|
<button className="btn btn-sm btn-secondary mt-2" style={{width: 'fit-content'}} onClick={() => startLearnEthTutorial('soliditybeginner')}> |
|
|
|
|
<FormattedMessage id="home.getStarted" /> |
|
|
|
|
</button> |
|
|
|
|
</div>} |
|
|
|
|