diff --git a/libs/remix-ui/clipboard/src/lib/copy-to-clipboard/copy-to-clipboard.tsx b/libs/remix-ui/clipboard/src/lib/copy-to-clipboard/copy-to-clipboard.tsx
index a90dc433af..d97cc622a1 100644
--- a/libs/remix-ui/clipboard/src/lib/copy-to-clipboard/copy-to-clipboard.tsx
+++ b/libs/remix-ui/clipboard/src/lib/copy-to-clipboard/copy-to-clipboard.tsx
@@ -4,6 +4,7 @@ import { OverlayTrigger, Tooltip } from 'react-bootstrap'
import { Placement } from 'react-bootstrap/esm/Overlay'
import './copy-to-clipboard.css'
+import { CustomTooltip } from '@remix-ui/helper'
interface ICopyToClipboard {
content?: any,
@@ -50,20 +51,22 @@ export const CopyToClipboard = (props: ICopyToClipboard) => {
setTimeout(() => setMessage(tip), 500)
}
+ const childJSX = (
+ children || ()
+ )
+
return (
// eslint-disable-next-line jsx-a11y/anchor-is-valid
-
- { message }
-
- }>
- {
- children || ()
- }
-
+
+ {childJSX}
+
)
}
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 f1c0826eb2..83101e8277 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,3 +1,4 @@
+import { CustomTooltip } from '@remix-ui/helper'
import React, { useState, useEffect } from 'react' // eslint-disable-line
import { OverlayTrigger, Tooltip } from 'react-bootstrap'
import './button-navigator.css'
@@ -55,113 +56,125 @@ export const ButtonNavigation = ({ stepOverBack, stepIntoBack, stepIntoForward,
const disableStepBtnStyle = 'stepButtonDisabled'
const jumpBtnStyle = 'd-flex align-items-center justify-content-center btn btn-primary btn-sm jumpButton h-75 m-0 p-1'
const disableJumpBtnStyle = 'jumpButtonDisabled'
+ const stepMarkupStructure = {
+ stepOverBackJSX : {
+ markup: (
{ stepOverBack && stepOverBack() }}>
+
+
),
+ placement: 'top-start',
+ tagId: 'overbackTooltip',
+ tooltipMsg: 'Step over back'
+ },
+ stepBackJSX : {
+ markup: (
+ { stepIntoBack && stepIntoBack() }} data-id="buttonNavigatorIntoBack" id="buttonNavigatorIntoBackContainer">
+
+
+ ),
+ placement: 'top-start',
+ tagId: 'intobackTooltip',
+ tooltipMsg: 'Step back'
+ },
+
+ stepIntoJSX : {
+ markup: (
+ { stepIntoForward && stepIntoForward() }} data-id="buttonNavigatorIntoForward" id="buttonNavigatorIntoFowardContainer">
+
+
+ ),
+ placement: 'top-start',
+ tagId: 'intoforwardTooltip',
+ tooltipMsg: 'Step into'
+ },
+ stepOverForwardJSX : {
+ markup: (
+ { stepOverForward && stepOverForward() }} data-id="buttonNavigatorOverForward" id="buttonNavigatorOverForwardContainer">
+
+
+ ),
+ placement: 'top-end',
+ tagId: 'overbackTooltip',
+ tooltipMsg: 'Step over forward',
+ }
+}
+ const jumpMarkupStructure = {
+ jumpPreviousBreakpointJSX : {
+ markup: (
+ { jumpPreviousBreakpoint && jumpPreviousBreakpoint() }} data-id="buttonNavigatorJumpPreviousBreakpoint">
+
+
+ ),
+ placement: 'bottom-start',
+ tagId: 'jumppreviousbreakpointTooltip',
+ tooltipMsg: 'Jump to the previous breakpoint'
+ },
+ jumpOutJSX : {
+ markup: (
+ { jumpOut && jumpOut() }} data-id="buttonNavigatorJumpOut" id="buttonNavigatorJumpOutContainer">
+
+
+ ),
+ placement: 'bottom-end',
+ tagId: 'jumpoutTooltip',
+ tooltipMsg: 'Jump out'
+ },
+ jumpNextBreakpointJSX : {
+ markup: (
+ { jumpNextBreakpoint && jumpNextBreakpoint() }} data-id="buttonNavigatorJumpNextBreakpoint" id="buttonNavigatorJumpNextBreakpointContainer">
+
+
+ ),
+ placement: 'bottom-end',
+ tagId: 'jumpnextbreakpointTooltip',
+ tooltipMsg: 'Jump to the next breakpoint'
+ }
+ }
return (
-
- Step over back
-
- }
- >
- { stepOverBack && stepOverBack() }}>
-
-
-
-
- Step back
-
- }
- >
- { stepIntoBack && stepIntoBack() }} data-id="buttonNavigatorIntoBack" id="buttonNavigatorIntoBackContainer">
-
-
-
-
- Step into
-
- }
- >
- { stepIntoForward && stepIntoForward() }} data-id="buttonNavigatorIntoForward" id="buttonNavigatorIntoFowardContainer">
-
-
-
-
- Step over forward
-
- }
- >
- { stepOverForward && stepOverForward() }} data-id="buttonNavigatorOverForward" id="buttonNavigatorOverForwardContainer">
-
-
-
+ {stepMarkupStructure[x].markup}
+
+ ))
+ }
-
- {'Jump to the previous breakpoint'}
-
- }
- >
- { jumpPreviousBreakpoint && jumpPreviousBreakpoint() }} data-id="buttonNavigatorJumpPreviousBreakpoint">
-
-
-
-
- {'Jump out'}
-
- }
- >
- { jumpOut && jumpOut() }} data-id="buttonNavigatorJumpOut" id="buttonNavigatorJumpOutContainer">
-
-
-
-
- {'Jump to the next breakpoint'}
-
- }
- >
- { jumpNextBreakpoint && jumpNextBreakpoint() }} data-id="buttonNavigatorJumpNextBreakpoint" id="buttonNavigatorJumpNextBreakpointContainer">
-
-
-
+ {
+ Object.keys(jumpMarkupStructure).map(x => (
+
+ {jumpMarkupStructure[x].markup}
+
+ ))
+ }
This call has reverted, state changes made during the call will be reverted.