diff --git a/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx b/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx index df51c8a512..edc94a9353 100644 --- a/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx @@ -6,7 +6,7 @@ import VmDebuggerHead from './vm-debugger/vm-debugger-head' // eslint-disable-li import { TransactionDebugger as Debugger } from '@remix-project/remix-debug' // eslint-disable-line import { DebuggerUIProps } from './idebugger-api' // eslint-disable-line import { Toaster } from '@remix-ui/toaster' // eslint-disable-line -import { isValidHash } from '@remix-ui/helper' +import { CustomTooltip, isValidHash } from '@remix-ui/helper' /* eslint-disable-next-line */ import './debugger-ui.css' import { OverlayTrigger, Tooltip } from 'react-bootstrap' @@ -346,19 +346,8 @@ export const DebuggerUI = (props: DebuggerUIProps) => { triggerEvent: state.debugger && state.debugger.vmDebuggerLogic ? state.debugger.vmDebuggerLogic.event.trigger.bind(state.debugger.vmDebuggerLogic.event) : null } - return ( -
- -
-
-
- - {"Debug with generated sources"} - - } placement="top-start" - > - + const customJSX = ( + { setState(prevState => { return { ...prevState, opt: { ...prevState.opt, debugWithGeneratedSources: checked } } @@ -366,7 +355,20 @@ export const DebuggerUI = (props: DebuggerUIProps) => { }} type="checkbox" /> - + ) + return ( +
+ +
+
+
+ + {customJSX} +
{ state.isLocalNodeUsed &&
{ diff --git a/libs/remix-ui/debugger-ui/src/lib/tx-browser/tx-browser.tsx b/libs/remix-ui/debugger-ui/src/lib/tx-browser/tx-browser.tsx index f50e153484..c048873483 100644 --- a/libs/remix-ui/debugger-ui/src/lib/tx-browser/tx-browser.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/tx-browser/tx-browser.tsx @@ -1,3 +1,4 @@ +import { CustomTooltip } from '@remix-ui/helper' import React, { useState, useEffect, useRef } from 'react' //eslint-disable-line import { OverlayTrigger, Tooltip } from 'react-bootstrap' import './tx-browser.css' @@ -46,7 +47,20 @@ export const TxBrowser = ({ requestDebug, updateTxNumberFlag, unloadRequested, t const txInputOnInput = () => { updateTxNumberFlag(!inputValue.current.value) } - + const customJSX = ( +
+ +
+ ) return (
@@ -65,29 +79,14 @@ export const TxBrowser = ({ requestDebug, updateTxNumberFlag, unloadRequested, t />
- - - {debugging ? 'Stop debugging' : 'Start debugging'} - - - } + -
- -
-
+ {customJSX} +
diff --git a/libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx b/libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx index e71b9330e1..515944c4d2 100644 --- a/libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx +++ b/libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx @@ -4,7 +4,7 @@ import { OverlayTrigger, Tooltip } from 'react-bootstrap'; import { CustomTooltipType } from '../../types/customtooltip' -export function CustomTooltip({ children, placement, tooltipId, tooltipClasses, tooltipText }: CustomTooltipType) { +export function CustomTooltip({ children, placement, tooltipId, tooltipClasses, tooltipText, tooltipTextClasses }: CustomTooltipType) { return ( @@ -12,7 +12,7 @@ export function CustomTooltip({ children, placement, tooltipId, tooltipClasses, placement={placement} overlay={ - {tooltipText} + {tooltipText} } > diff --git a/libs/remix-ui/helper/src/types/customtooltip.ts b/libs/remix-ui/helper/src/types/customtooltip.ts index 83cb2bb3a5..1b71376bfb 100644 --- a/libs/remix-ui/helper/src/types/customtooltip.ts +++ b/libs/remix-ui/helper/src/types/customtooltip.ts @@ -6,5 +6,6 @@ export type CustomTooltipType = { placement?: Placement, tooltipId?: string, tooltipClasses?:string, - tooltipText: string + tooltipText: string, + tooltipTextClasses?: string } \ No newline at end of file diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx index 5e461df8a1..24683125ae 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx @@ -4,6 +4,7 @@ import BasicLogo from 'libs/remix-ui/vertical-icons-panel/src/lib/components/Bas import { ThemeContext } from '../themeContext' import React, { useEffect, useState, useRef, useContext } from 'react' import { OverlayTrigger, Tooltip } from 'react-bootstrap'// eslint-disable-line +import { CustomTooltip } from '@remix-ui/helper' function HomeTabTitle() { useEffect(() => { @@ -61,60 +62,70 @@ function HomeTabTitle() {
Remix - - Remix Youtube Playlist - - }> + - + - - Remix Twitter Profile - - }> + - + - - Remix Linkedin Profile - - }> + - + - - Remix Medium Posts - - }> + - + - - Remix Gitter channel - - }> + - +
The Native IDE for Web3 Development. diff --git a/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx b/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx index 8a8470304d..0fc33a50a9 100644 --- a/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx @@ -2,6 +2,7 @@ import React, { useContext } from 'react' import { ThemeContext } from '../themeContext' import { OverlayTrigger, Tooltip } from 'react-bootstrap' // eslint-disable-line +import { CustomTooltip } from '@remix-ui/helper' interface PluginButtonProps { imgPath: string, envID: string, @@ -30,13 +31,13 @@ function PluginButton ({ imgPath, envID, envText, callback, l2, description, rem { l2 && } { remixMaintained && - - Maintained by Remix - - }> + - + }