Skip to content

Commit 3ffc467

Browse files
committed
update translation imports
1 parent 3fd9fe5 commit 3ffc467

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

src/components/Layer2NetworksTable/NetworkMaturityTooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { useTranslation } from "next-i18next"
2-
31
import { MaturityLevel } from "@/lib/types"
42

53
import Tooltip from "@/components/Tooltip"
64
import { Tag } from "@/components/ui/tag"
75

6+
import useTranslation from "@/hooks/useTranslation"
7+
88
const NetworkMaturityTooltip = ({ maturity }: { maturity: MaturityLevel }) => {
99
const { t } = useTranslation("page-layer-2-networks")
1010

src/components/Layer2NetworksTable/NetworksNoResults.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { useTranslation } from "next-i18next"
2-
31
import { trackCustomEvent } from "@/lib/utils/matomo"
42

53
import { Button } from "../ui/buttons/Button"
64

5+
import useTranslation from "@/hooks/useTranslation"
6+
77
const FindWalletsNoResults = ({ resetFilters }) => {
88
const { t } = useTranslation("page-layer-2-networks")
99

src/components/Layer2NetworksTable/NetworksSubComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useTranslation } from "next-i18next"
21
import { MdInfoOutline } from "react-icons/md"
32

43
import NetworkUsageChart from "@/components/Layer2NetworksTable/NetworkUsageChart"
@@ -7,6 +6,8 @@ import Tooltip from "@/components/Tooltip"
76
import { ButtonLink } from "../ui/buttons/Button"
87
import InlineLink from "../ui/Link"
98

9+
import useTranslation from "@/hooks/useTranslation"
10+
1011
const formatNumber = (num: number): string => {
1112
if (num >= 1e9) {
1213
return (num / 1e9).toFixed(2) + "B"

src/components/Layer2NetworksTable/NetworksWalletSelectInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useState } from "react"
2-
import { useTranslation } from "next-i18next"
32

43
import { FilterInputState } from "@/lib/types"
54

@@ -14,6 +13,8 @@ import {
1413

1514
import { walletsData } from "@/data/wallets/wallet-data"
1615

16+
import useTranslation from "@/hooks/useTranslation"
17+
1718
interface NetworksWalletSelectInputProps {
1819
filterIndex: number
1920
itemIndex: number

src/components/Layer2NetworksTable/hooks/useNetworkFilters.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { useTranslation } from "next-i18next"
2-
31
import { FilterOption } from "@/lib/types"
42

53
import {
@@ -13,6 +11,8 @@ import SwitchFilterInput from "@/components/ProductTable/FilterInputs/SwitchFilt
1311

1412
import { trackCustomEvent } from "@/lib/utils/matomo"
1513

14+
import useTranslation from "@/hooks/useTranslation"
15+
1616
export const useNetworkFilters = (): FilterOption[] => {
1717
const { t } = useTranslation("page-layer-2-networks")
1818

src/components/Layer2NetworksTable/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useMemo, useState } from "react"
2-
import { useTranslation } from "next-i18next"
32

43
import { ExtendedRollup, FilterOption, Lang } from "@/lib/types"
54

@@ -11,6 +10,8 @@ import ProductTable from "@/components/ProductTable"
1110

1211
import { trackCustomEvent } from "@/lib/utils/matomo"
1312

13+
import useTranslation from "@/hooks/useTranslation"
14+
1415
const Layer2NetworksTable = ({
1516
layer2Data,
1617
locale,

0 commit comments

Comments
 (0)