Compile circom code with play button

pull/4144/head
ioedeveloper 1 year ago
parent bb28855001
commit 7773a829e7
  1. 5
      libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

@ -179,6 +179,9 @@ export const TabsUI = (props: TabsUIProps) => {
} else if (tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul') { } else if (tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul') {
await props.plugin.call('solidity', 'compile', path) await props.plugin.call('solidity', 'compile', path)
_paq.push(['trackEvent', 'editor', 'clickRunFromEditor', tabsState.currentExt]) _paq.push(['trackEvent', 'editor', 'clickRunFromEditor', tabsState.currentExt])
} else if (tabsState.currentExt === 'circom') {
await props.plugin.call('circuit-compiler', 'compile', path)
_paq.push(['trackEvent', 'editor', 'clickRunFromEditor', tabsState.currentExt])
} }
}} }}
> >
@ -189,7 +192,7 @@ export const TabsUI = (props: TabsUIProps) => {
<span> <span>
{tabsState.currentExt === 'js' || tabsState.currentExt === 'ts' ? ( {tabsState.currentExt === 'js' || tabsState.currentExt === 'ts' ? (
<FormattedMessage id="remixUiTabs.tooltipText1" /> <FormattedMessage id="remixUiTabs.tooltipText1" />
) : tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul' ? ( ) : tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul' || tabsState.currentExt === 'circom' ? (
<FormattedMessage id="remixUiTabs.tooltipText2" /> <FormattedMessage id="remixUiTabs.tooltipText2" />
) : ( ) : (
<FormattedMessage id="remixUiTabs.tooltipText3" /> <FormattedMessage id="remixUiTabs.tooltipText3" />

Loading…
Cancel
Save