Skip to content

Commit

Permalink
show tooltip on button
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Nov 3, 2023
1 parent 6c563c3 commit 02b9dfc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apps/circuit-compiler/src/app/components/compileBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ export function CompileBtn () {
const { plugin, appState } = useContext(CircuitAppContext)

return (
<button
className="btn btn-primary btn-block d-block w-100 text-break mb-1 mt-3"
onClick={() => { compileCircuit(plugin, appState) }}
disabled={(appState.filePath === "") || (appState.status === "compiling") || (appState.status === "generating")}
>
<CustomTooltip
<CustomTooltip
placement="auto"
tooltipId="overlay-tooltip-compile"
tooltipText={
Expand All @@ -23,6 +18,11 @@ export function CompileBtn () {
</div>
</div>
}
>
<button
className="btn btn-primary btn-block d-block w-100 text-break mb-1 mt-3"
onClick={() => { compileCircuit(plugin, appState) }}
disabled={(appState.filePath === "") || (appState.status === "compiling") || (appState.status === "generating")}
>
<div className="d-flex align-items-center justify-content-center">
<RenderIf condition={appState.status === 'compiling'}>
Expand All @@ -45,7 +45,7 @@ export function CompileBtn () {
</span>
</div>
</div>
</CustomTooltip>
</button>
</button>
</CustomTooltip>
)
}

0 comments on commit 02b9dfc

Please sign in to comment.