fixed react errors and icons for licenses

pull/5370/head
lianahus 1 year ago
parent 49179d4662
commit 19a9445fe8
  1. 11
      apps/circuit-compiler/src/app/components/container.tsx
  2. 2
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -53,11 +53,16 @@ export function Container () {
<article> <article>
<div className="pt-0 circuit_section"> <div className="pt-0 circuit_section">
<div className="mb-1"> <div className="mb-1">
<label className="circuit_label form-check-label" htmlFor="versionSelector"> <label className="circuit_label form-check-label">
<FormattedMessage id="circuit.compiler" /> <FormattedMessage id="circuit.compiler" />
</label> </label>
<CustomTooltip placement="top" tooltipId="showCompilerTooltip" tooltipClasses="text-nowrap" tooltipText={'See compiler license'}> <CustomTooltip
<span className="fa fa-file-text-o border-0 p-0 ml-2" onClick={() => showCompilerLicense()}></span> placement="top"
tooltipId="showCircumCompilerTooltip"
tooltipClasses="text-nowrap"
tooltipText='See compiler license'
>
<span className="far fa-file-certificate border-0 p-0 ml-2" onClick={() => showCompilerLicense()}></span>
</CustomTooltip> </CustomTooltip>
<VersionList setVersion={handleVersionSelect} versionList={circuitApp.appState.versionList} currentVersion={circuitApp.appState.version} /> <VersionList setVersion={handleVersionSelect} versionList={circuitApp.appState.versionList} currentVersion={circuitApp.appState.version} />
<CompileOptions setCircuitAutoCompile={handleCircuitAutoCompile} setCircuitHideWarnings={handleCircuitHideWarnings} autoCompile={circuitApp.appState.autoCompile} hideWarnings={circuitApp.appState.hideWarnings} /> <CompileOptions setCircuitAutoCompile={handleCircuitAutoCompile} setCircuitHideWarnings={handleCircuitHideWarnings} autoCompile={circuitApp.appState.autoCompile} hideWarnings={circuitApp.appState.hideWarnings} />

@ -773,7 +773,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
<span className="far fa-plus border-0 p-0 ml-3" onClick={() => promptCompiler()}></span> <span className="far fa-plus border-0 p-0 ml-3" onClick={() => promptCompiler()}></span>
</CustomTooltip> </CustomTooltip>
<CustomTooltip placement="top" tooltipId="showCompilerTooltip" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="solidity.seeCompilerLicense" />}> <CustomTooltip placement="top" tooltipId="showCompilerTooltip" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="solidity.seeCompilerLicense" />}>
<span className="fa fa-file-text-o border-0 p-0 ml-2" onClick={() => showCompilerLicense()}></span> <span className="far fa-file-certificate border-0 p-0 ml-2" onClick={() => showCompilerLicense()}></span>
</CustomTooltip> </CustomTooltip>
<select <select
value={state.selectedVersion || state.defaultVersion} value={state.selectedVersion || state.defaultVersion}

Loading…
Cancel
Save