From 10ef8c04872dae525fd394b956c4233d273c09a9 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 27 Sep 2022 22:17:42 +0100 Subject: [PATCH] finish adding tooltips to debugger --- .../lib/button-navigator/button-navigator.tsx | 94 +++++++++++++++++-- 1 file changed, 86 insertions(+), 8 deletions(-) diff --git a/libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx b/libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx index 2db94f72cc..a17f090ed4 100644 --- a/libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx @@ -1,4 +1,5 @@ import React, { useState, useEffect } from 'react' // eslint-disable-line +import { OverlayTrigger, Tooltip } from 'react-bootstrap' import './button-navigator.css' export const ButtonNavigation = ({ stepOverBack, stepIntoBack, stepIntoForward, stepOverForward, jumpOut, jumpPreviousBreakpoint, jumpNextBreakpoint, jumpToException, revertedReason, stepState, jumpOutDisabled }) => { @@ -53,19 +54,96 @@ export const ButtonNavigation = ({ stepOverBack, stepIntoBack, stepIntoForward, return (
- - - - + + + +
- - - + + +
- This call has reverted, state changes made during the call will be reverted. + This call has reverted, state changes made during the call will be reverted. This call will run out of gas. The parent call will throw an exception
Click { jumpToException && jumpToException() }}>here to jump where the call reverted.