diff --git a/ui/_locales/en/messages.json b/ui/_locales/en/messages.json index d9fd7129ef..9f3f5ccda1 100644 --- a/ui/_locales/en/messages.json +++ b/ui/_locales/en/messages.json @@ -340,6 +340,7 @@ "networksBanner": "Not seeing NFTs from all your networks? Activate a network by switching to it on the Wallet tab.", "filters": { "title": "Filter collections", + "tooltip": "Filter", "warning": "Changing filters here will affect your Portfolio page as well.", "sortType": { "priceDesc": "Floor price: Descending", @@ -620,6 +621,7 @@ "connectedWebsitesSettings": { "title": "Connected websites", "disconnected": "Website disconnected", + "disconnectTooltip": "Disconnect website", "ariaLabel": "Manage connected websites", "emptyList": "Not connected to any websites" }, @@ -804,6 +806,7 @@ }, "topMenu": { "showCurrentDappConnection": "Show current website connection", + "currentDappConnection": "Current website connection", "connectToWebsiteUsing": "Connect to website using:", "setTahoAsDefault": "Set Taho as default", "setOtherAsDefault": "Set MetaMask/other wallet as default", @@ -818,6 +821,7 @@ "connectedDappInfo": { "dAppTitle": "Account connected to", "dappConnections": "Website connections", + "disconnectDapp": "Disconnect Dapp", "guideline": { "title": "How to connect to websites", "step1": "Connect using Taho", @@ -963,7 +967,7 @@ "submitSpamBtn": "Yes, report & delete", "snackbar": "Ability deleted" }, - "filter": { + "filters": { "title": "Filter Abilities", "tooltip": "Filter", "abilityState": { diff --git a/ui/_locales/es/messages.json b/ui/_locales/es/messages.json index f2f7b179cc..1c21ada337 100644 --- a/ui/_locales/es/messages.json +++ b/ui/_locales/es/messages.json @@ -68,10 +68,11 @@ "bugReport": "Informe de errores", "connectedWebsites": "Sitios Web a los que está conectado", "connectedWebsitesSettings": { - "ariaLabel": "Administrar sitios web conectados", + "title": "Sitios web a los que está conectado", "disconnected": "Sitios web desconectados", - "emptyList": "No está conectado a ningún sitio web", - "title": "Sitios web a los que está conectado" + "disconnectTooltip": "Desconectar sitios web", + "ariaLabel": "Administrar sitios web conectados", + "emptyList": "No está conectado a ningún sitio web" }, "enableTestNetworks": "Habilitar redes de prueba", "exportLogs": { diff --git a/ui/_locales/zh_Hant/messages.json b/ui/_locales/zh_Hant/messages.json index ef99c67258..1b840e9055 100644 --- a/ui/_locales/zh_Hant/messages.json +++ b/ui/_locales/zh_Hant/messages.json @@ -69,10 +69,11 @@ "bugReport": "問題回報", "connectedWebsites": "已連結的網站", "connectedWebsitesSettings": { - "ariaLabel": "管理已連結的網站", + "title": "已連結的網站", "disconnected": "網站已斷開", - "emptyList": "尚未與任何網站連結", - "title": "已連結的網站" + "disconnectTooltip": "斷開網站連接", + "ariaLabel": "管理已連結的網站", + "emptyList": "尚未與任何網站連結" }, "enableTestNetworks": "啟用測試網路", "exportLogs": { diff --git a/ui/components/DAppConnection/ActiveDAppConnection.tsx b/ui/components/DAppConnection/ActiveDAppConnection.tsx index 45e357442e..5113712150 100644 --- a/ui/components/DAppConnection/ActiveDAppConnection.tsx +++ b/ui/components/DAppConnection/ActiveDAppConnection.tsx @@ -4,6 +4,7 @@ import React, { ReactElement, useCallback, useState } from "react" import { useTranslation } from "react-i18next" import { useBackgroundDispatch } from "../../hooks" import TopMenuConnectedDAppInfo from "../TopMenu/TopMenuConnectedDAppInfo" +import SharedTooltip from "../Shared/SharedTooltip" type Props = { isConnectedToDApp: boolean @@ -54,16 +55,29 @@ export default function ActiveDAppConnection({ isConnected={isConnectedToDApp} /> ) : null} - + {t("currentDappConnection")} + + + > + ) +} diff --git a/ui/components/Shared/SharedIconRouterLink.tsx b/ui/components/Shared/SharedIconRouterLink.tsx index 1f8b7df199..516162c83b 100644 --- a/ui/components/Shared/SharedIconRouterLink.tsx +++ b/ui/components/Shared/SharedIconRouterLink.tsx @@ -1,15 +1,18 @@ import React, { ReactElement } from "react" import { Link } from "react-router-dom" +import SharedTooltip from "./SharedTooltip" type Props = { path: string state: { [key: string]: unknown } iconClass: string disabled?: boolean + isTooltip?: boolean + tooltipText?: string } export default function SharedIconRouterLink(props: Props): ReactElement { - const { path, state, iconClass, disabled } = props + const { path, state, iconClass, disabled, isTooltip, tooltipText } = props if (disabled) { return ( @@ -28,16 +31,33 @@ export default function SharedIconRouterLink(props: Props): ReactElement { } return ( - -