From af1b9b2d9d0b8fd40fd1a8f826ba0f18a96ab366 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Wed, 26 Apr 2023 14:01:21 +0530 Subject: [PATCH] tooltip for nav icons --- .../src/app/components/HeaderWithSettings.tsx | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/apps/etherscan/src/app/components/HeaderWithSettings.tsx b/apps/etherscan/src/app/components/HeaderWithSettings.tsx index c819488a2a..7f11842691 100644 --- a/apps/etherscan/src/app/components/HeaderWithSettings.tsx +++ b/apps/etherscan/src/app/components/HeaderWithSettings.tsx @@ -1,7 +1,7 @@ import React from "react" import { NavLink } from "react-router-dom" -import { CustomTooltip } from '@remix-ui/helper'; +import { CustomTooltip } from '@remix-ui/helper' import { AppContext } from "../AppContext" interface Props { @@ -20,9 +20,14 @@ const HomeIcon: React.FC = ({ from }: IconProps) => { data-id="home" to="/" state={ from } - style={{ marginRight: "0.4em" }} > - + + + ) } @@ -33,9 +38,15 @@ const ReceiptsIcon: React.FC = ({ from }: IconProps) => { data-id="receipts" to="/receipts" state={ from } - style={{ marginRight: "0.4em" }} + className="mx-2" > - + + + ) } @@ -46,9 +57,14 @@ const SettingsIcon: React.FC = ({ from }: IconProps) => { data-id="settings" to="/settings" state= {from} - style={{ marginRight: "0.4em" }} > - + + + ) }