chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022)

This commit is contained in:
Matthew Russell 2023-02-28 10:56:29 -08:00 committed by GitHub
parent cf83fe9469
commit a796a38200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1009 changed files with 6782 additions and 3777 deletions

View File

@ -1,5 +1,5 @@
import { useAssetDataProvider } from '@vegaprotocol/assets'; import { useAssetDataProvider } from '@vegaprotocol/assets';
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers'; import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { AssetLink } from '../links'; import { AssetLink } from '../links';
export type AssetBalanceProps = { export type AssetBalanceProps = {

View File

@ -1,4 +1,4 @@
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers'; import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { useExplorerGovernanceAssetQuery } from './__generated__/Governance-asset'; import { useExplorerGovernanceAssetQuery } from './__generated__/Governance-asset';
import AssetBalance from './asset-balance'; import AssetBalance from './asset-balance';

View File

@ -1,11 +1,11 @@
import type { AssetFieldsFragment } from '@vegaprotocol/assets'; import type { AssetFieldsFragment } from '@vegaprotocol/assets';
import { AssetTypeMapping, AssetStatusMapping } from '@vegaprotocol/assets'; import { AssetTypeMapping, AssetStatusMapping } from '@vegaprotocol/assets';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { VegaICellRendererParams } from '@vegaprotocol/ui-toolkit';
import { ButtonLink } from '@vegaprotocol/ui-toolkit'; import { ButtonLink } from '@vegaprotocol/ui-toolkit';
import type { AgGridReact } from 'ag-grid-react'; import type { AgGridReact } from 'ag-grid-react';
import { AgGridColumn } from 'ag-grid-react'; import { AgGridColumn } from 'ag-grid-react';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/ui-toolkit'; import { AgGridDynamic as AgGrid } from '@vegaprotocol/datagrid';
import type { VegaICellRendererParams } from '@vegaprotocol/datagrid';
import { useRef, useLayoutEffect } from 'react'; import { useRef, useLayoutEffect } from 'react';
import { BREAKPOINT_MD } from '../../config/breakpoints'; import { BREAKPOINT_MD } from '../../config/breakpoints';
import { useNavigate } from 'react-router-dom'; import { useNavigate } from 'react-router-dom';

View File

@ -2,11 +2,11 @@ import React from 'react';
import type { BlockMeta } from '../../routes/blocks/tendermint-blockchain-response'; import type { BlockMeta } from '../../routes/blocks/tendermint-blockchain-response';
import { Routes } from '../../routes/route-names'; import { Routes } from '../../routes/route-names';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { getDateTimeFormat } from '@vegaprotocol/react-helpers'; import { getDateTimeFormat } from '@vegaprotocol/utils';
import { Tooltip } from '@vegaprotocol/ui-toolkit'; import { Tooltip } from '@vegaprotocol/ui-toolkit';
import { TimeAgo } from '../time-ago'; import { TimeAgo } from '../time-ago';
import { TableWithTbody, TableRow, TableCell } from '../table'; import { TableWithTbody, TableRow, TableCell } from '../table';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
interface BlockProps { interface BlockProps {
block: BlockMeta; block: BlockMeta;

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import React from 'react'; import React from 'react';
import type { TendermintBlockchainResponse } from '../../routes/blocks/tendermint-blockchain-response'; import type { TendermintBlockchainResponse } from '../../routes/blocks/tendermint-blockchain-response';
import { BlockData } from './block-data'; import { BlockData } from './block-data';

View File

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import { FixedSizeList as List } from 'react-window'; import { FixedSizeList as List } from 'react-window';
import InfiniteLoader from 'react-window-infinite-loader'; import InfiniteLoader from 'react-window-infinite-loader';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockMeta } from '../../routes/blocks/tendermint-blockchain-response'; import type { BlockMeta } from '../../routes/blocks/tendermint-blockchain-response';
import { BlockData } from './block-data'; import { BlockData } from './block-data';
import EmptyList from '../empty-list/empty-list'; import EmptyList from '../empty-list/empty-list';

View File

@ -1,6 +1,6 @@
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { useTendermintWebsocket } from '../../hooks/use-tendermint-websocket'; import { useTendermintWebsocket } from '../../hooks/use-tendermint-websocket';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { ButtonLink } from '@vegaprotocol/ui-toolkit'; import { ButtonLink } from '@vegaprotocol/ui-toolkit';
interface BlocksRefetchProps { interface BlocksRefetchProps {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { import {
Button, Button,
Dialog, Dialog,

View File

@ -1,7 +1,7 @@
import { MockedProvider } from '@apollo/client/testing'; import { MockedProvider } from '@apollo/client/testing';
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import EpochMissingOverview, { calculateEpochData } from './epoch-missing'; import EpochMissingOverview, { calculateEpochData } from './epoch-missing';
import { getSecondsFromInterval } from '@vegaprotocol/react-helpers'; import { getSecondsFromInterval } from '@vegaprotocol/utils';
const START_DATE_PAST = 'Monday, 17 February 2022 11:44:09'; const START_DATE_PAST = 'Monday, 17 February 2022 11:44:09';
describe('getSecondsFromInterval', () => { describe('getSecondsFromInterval', () => {

View File

@ -4,8 +4,7 @@ import addSeconds from 'date-fns/addSeconds';
import formatDistance from 'date-fns/formatDistance'; import formatDistance from 'date-fns/formatDistance';
import { Icon, Tooltip } from '@vegaprotocol/ui-toolkit'; import { Icon, Tooltip } from '@vegaprotocol/ui-toolkit';
import isFuture from 'date-fns/isFuture'; import isFuture from 'date-fns/isFuture';
import { isValidDate } from '@vegaprotocol/react-helpers'; import { getSecondsFromInterval, isValidDate } from '@vegaprotocol/utils';
import { getSecondsFromInterval } from '@vegaprotocol/react-helpers';
export type EpochMissingOverviewProps = { export type EpochMissingOverviewProps = {
missingEpochId?: string; missingEpochId?: string;

View File

@ -1,6 +1,6 @@
import { useExplorerEpochQuery } from './__generated__/Epoch'; import { useExplorerEpochQuery } from './__generated__/Epoch';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { BlockLink } from '../links'; import { BlockLink } from '../links';
import { Time } from '../time'; import { Time } from '../time';
import { TimeAgo } from '../time-ago'; import { TimeAgo } from '../time-ago';

View File

@ -1,5 +1,6 @@
import { NodeSwitcherDialog, useEnvironment } from '@vegaprotocol/environment'; import { NodeSwitcherDialog, useEnvironment } from '@vegaprotocol/environment';
import { t, useScreenDimensions } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { useScreenDimensions } from '@vegaprotocol/react-helpers';
import { ExternalLink, Link } from '@vegaprotocol/ui-toolkit'; import { ExternalLink, Link } from '@vegaprotocol/ui-toolkit';
import { useMemo, useState } from 'react'; import { useMemo, useState } from 'react';
import { ENV } from '../../config/env'; import { ENV } from '../../config/env';

View File

@ -1,7 +1,7 @@
import classnames from 'classnames'; import classnames from 'classnames';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { ThemeSwitcher, Icon } from '@vegaprotocol/ui-toolkit'; import { ThemeSwitcher, Icon } from '@vegaprotocol/ui-toolkit';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { Search } from '../search'; import { Search } from '../search';
import { Routes } from '../../routes/route-names'; import { Routes } from '../../routes/route-names';
import { NetworkSwitcher } from '@vegaprotocol/environment'; import { NetworkSwitcher } from '@vegaprotocol/environment';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import React from 'react'; import React from 'react';
import { useNavigate } from 'react-router-dom'; import { useNavigate } from 'react-router-dom';
import { Routes } from '../../routes/route-names'; import { Routes } from '../../routes/route-names';

View File

@ -1,6 +1,6 @@
import type { HTMLInputTypeAttribute, SyntheticEvent } from 'react'; import type { HTMLInputTypeAttribute, SyntheticEvent } from 'react';
import { Input, Button } from '@vegaprotocol/ui-toolkit'; import { Input, Button } from '@vegaprotocol/ui-toolkit';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
interface JumpToProps { interface JumpToProps {
label: string; label: string;

View File

@ -3,7 +3,7 @@ import { useExplorerMarketQuery } from './__generated__/Market';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import type { ComponentProps } from 'react'; import type { ComponentProps } from 'react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import Hash from '../hash'; import Hash from '../hash';
export type MarketLinkProps = Partial<ComponentProps<typeof Link>> & { export type MarketLinkProps = Partial<ComponentProps<typeof Link>> & {

View File

@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
import type { ComponentProps } from 'react'; import type { ComponentProps } from 'react';
import Hash from '../hash'; import Hash from '../hash';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { isValidPartyId } from '../../../routes/parties/id/components/party-id-error'; import { isValidPartyId } from '../../../routes/parties/id/components/party-id-error';
import { truncateMiddle } from '@vegaprotocol/ui-toolkit'; import { truncateMiddle } from '@vegaprotocol/ui-toolkit';

View File

@ -2,8 +2,8 @@ import {
addDecimalsFormatNumber, addDecimalsFormatNumber,
formatNumberPercentage, formatNumberPercentage,
getMarketExpiryDateFormatted, getMarketExpiryDateFormatted,
t, } from '@vegaprotocol/utils';
} from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { MarketInfoNoCandlesQuery } from '@vegaprotocol/market-info'; import type { MarketInfoNoCandlesQuery } from '@vegaprotocol/market-info';
import { MarketInfoTable } from '@vegaprotocol/market-info'; import { MarketInfoTable } from '@vegaprotocol/market-info';
import pick from 'lodash/pick'; import pick from 'lodash/pick';

View File

@ -1,13 +1,13 @@
import type { MarketFieldsFragment } from '@vegaprotocol/market-list'; import type { MarketFieldsFragment } from '@vegaprotocol/market-list';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type {
VegaICellRendererParams,
VegaValueGetterParams,
} from '@vegaprotocol/ui-toolkit';
import { ButtonLink } from '@vegaprotocol/ui-toolkit'; import { ButtonLink } from '@vegaprotocol/ui-toolkit';
import type { AgGridReact } from 'ag-grid-react'; import type { AgGridReact } from 'ag-grid-react';
import { AgGridColumn } from 'ag-grid-react'; import { AgGridColumn } from 'ag-grid-react';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/ui-toolkit'; import { AgGridDynamic as AgGrid } from '@vegaprotocol/datagrid';
import type {
VegaICellRendererParams,
VegaValueGetterParams,
} from '@vegaprotocol/datagrid';
import { useRef, useLayoutEffect } from 'react'; import { useRef, useLayoutEffect } from 'react';
import { BREAKPOINT_MD } from '../../config/breakpoints'; import { BREAKPOINT_MD } from '../../config/breakpoints';
import { MarketStateMapping } from '@vegaprotocol/types'; import { MarketStateMapping } from '@vegaprotocol/types';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { useExplorerDeterministicOrderQuery } from './__generated__/Order'; import { useExplorerDeterministicOrderQuery } from './__generated__/Order';
import { MarketLink } from '../links'; import { MarketLink } from '../links';
import PriceInMarket from '../price-in-market/price-in-market'; import PriceInMarket from '../price-in-market/price-in-market';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { useExplorerDeterministicOrderQuery } from './__generated__/Order'; import { useExplorerDeterministicOrderQuery } from './__generated__/Order';
import { MarketLink } from '../links'; import { MarketLink } from '../links';
import PriceInMarket from '../price-in-market/price-in-market'; import PriceInMarket from '../price-in-market/price-in-market';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type * as Schema from '@vegaprotocol/types'; import type * as Schema from '@vegaprotocol/types';
import type { components } from '../../../../types/explorer'; import type { components } from '../../../../types/explorer';

View File

@ -1,4 +1,5 @@
import { addDecimalsFormatNumber, t } from '@vegaprotocol/react-helpers'; import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { t } from '@vegaprotocol/i18n';
import isUndefined from 'lodash/isUndefined'; import isUndefined from 'lodash/isUndefined';
import { useExplorerMarketQuery } from '../links/market-link/__generated__/Market'; import { useExplorerMarketQuery } from '../links/market-link/__generated__/Market';
import get from 'lodash/get'; import get from 'lodash/get';

View File

@ -1,21 +1,18 @@
import type { ProposalListFieldsFragment } from '@vegaprotocol/governance'; import type { ProposalListFieldsFragment } from '@vegaprotocol/proposals';
import { VoteProgress } from '@vegaprotocol/governance'; import { VoteProgress } from '@vegaprotocol/proposals';
import type { AgGridReact } from 'ag-grid-react'; import type { AgGridReact } from 'ag-grid-react';
import { AgGridColumn } from 'ag-grid-react'; import { AgGridColumn } from 'ag-grid-react';
import { ExternalLink } from '@vegaprotocol/ui-toolkit';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/datagrid';
import type { import type {
VegaICellRendererParams, VegaICellRendererParams,
VegaValueFormatterParams, VegaValueFormatterParams,
} from '@vegaprotocol/ui-toolkit'; } from '@vegaprotocol/datagrid';
import { ExternalLink } from '@vegaprotocol/ui-toolkit';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/ui-toolkit';
import { useLayoutEffect, useMemo, useRef, useState } from 'react'; import { useLayoutEffect, useMemo, useRef, useState } from 'react';
import type { RowClickedEvent } from 'ag-grid-community'; import type { RowClickedEvent } from 'ag-grid-community';
import { import { getDateTimeFormat } from '@vegaprotocol/utils';
getDateTimeFormat, import { t } from '@vegaprotocol/i18n';
NetworkParams, import { NetworkParams, useNetworkParams } from '@vegaprotocol/react-helpers';
t,
useNetworkParams,
} from '@vegaprotocol/react-helpers';
import { ProposalStateMapping } from '@vegaprotocol/types'; import { ProposalStateMapping } from '@vegaprotocol/types';
import BigNumber from 'bignumber.js'; import BigNumber from 'bignumber.js';
import { DApp, TOKEN_PROPOSAL, useLinks } from '@vegaprotocol/environment'; import { DApp, TOKEN_PROPOSAL, useLinks } from '@vegaprotocol/environment';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { StatusMessage } from '../status-message'; import { StatusMessage } from '../status-message';
interface RenderFetchedProps { interface RenderFetchedProps {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import React from 'react'; import React from 'react';
interface RouteErrorBoundaryProps { interface RouteErrorBoundaryProps {

View File

@ -1,5 +1,5 @@
import { useCallback, useState } from 'react'; import { useCallback, useState } from 'react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { Button, Input, InputError } from '@vegaprotocol/ui-toolkit'; import { Button, Input, InputError } from '@vegaprotocol/ui-toolkit';
import { useForm } from 'react-hook-form'; import { useForm } from 'react-hook-form';
import { useNavigate } from 'react-router-dom'; import { useNavigate } from 'react-router-dom';

View File

@ -1,5 +1,5 @@
import { useAssetDataProvider } from '@vegaprotocol/assets'; import { useAssetDataProvider } from '@vegaprotocol/assets';
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers'; import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { AssetLink } from '../links'; import { AssetLink } from '../links';
export type DecimalSource = 'ASSET'; export type DecimalSource = 'ASSET';

View File

@ -1,4 +1,4 @@
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers'; import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { useExplorerMarketQuery } from '../links/market-link/__generated__/Market'; import { useExplorerMarketQuery } from '../links/market-link/__generated__/Market';
export type DecimalSource = 'MARKET'; export type DecimalSource = 'MARKET';

View File

@ -1,5 +1,5 @@
import { formatDistanceToNowStrict } from 'date-fns'; import { formatDistanceToNowStrict } from 'date-fns';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
interface TimeAgoProps { interface TimeAgoProps {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
interface TimeProps { interface TimeProps {
date: string | null | undefined; date: string | null | undefined;

View File

@ -1,4 +1,4 @@
import { truncateByChars } from '@vegaprotocol/react-helpers'; import { truncateByChars } from '@vegaprotocol/utils';
import * as React from 'react'; import * as React from 'react';
interface TruncateInlineProps { interface TruncateInlineProps {

View File

@ -1,6 +1,6 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { TxDetailsChainEventBuiltinDeposit } from './tx-builtin-deposit'; import { TxDetailsChainEventBuiltinDeposit } from './tx-builtin-deposit';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { AssetLink, PartyLink } from '../../../links'; import { AssetLink, PartyLink } from '../../../links';

View File

@ -1,6 +1,6 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { TxDetailsChainEventBuiltinWithdrawal } from './tx-builtin-withdrawal'; import { TxDetailsChainEventBuiltinWithdrawal } from './tx-builtin-withdrawal';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { AssetLink, PartyLink } from '../../../links'; import { AssetLink, PartyLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { AssetLink } from '../../../links'; import { AssetLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { AssetLink } from '../../../links'; import { AssetLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { AssetLink } from '../../../links'; import { AssetLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TxDetailsChainEventErc20BridgePause } from './tx-erc20-bridge-pause'; import { TxDetailsChainEventErc20BridgePause } from './tx-erc20-bridge-pause';
describe('Chain Event: ERC20 bridge pause', () => { describe('Chain Event: ERC20 bridge pause', () => {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
export interface TxDetailsChainEventErc20BridgePauseProps { export interface TxDetailsChainEventErc20BridgePauseProps {

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { AssetLink, PartyLink } from '../../../links'; import { AssetLink, PartyLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { AssetLink } from '../../../links'; import { AssetLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { MockedProvider } from '@apollo/client/testing'; import { MockedProvider } from '@apollo/client/testing';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { getBlockTime } from './lib/get-block-time'; import { getBlockTime } from './lib/get-block-time';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { MockedProvider } from '@apollo/client/testing'; import { MockedProvider } from '@apollo/client/testing';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import isNumber from 'lodash/isNumber'; import isNumber from 'lodash/isNumber';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { PartyLink } from '../../../links'; import { PartyLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { PartyLink } from '../../../links'; import { PartyLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit'; import omit from 'lodash/omit';

View File

@ -1,4 +1,5 @@
import { formatNumber, t, toBigNum } from '@vegaprotocol/react-helpers'; import { formatNumber, toBigNum } from '@vegaprotocol/utils';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { import {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../../types/explorer'; import type { components } from '../../../../../../types/explorer';
import { TableRow } from '../../../../table'; import { TableRow } from '../../../../table';

View File

@ -1,5 +1,5 @@
import { useExplorerSettlementAssetForMarketQuery } from '../__generated__/Explorer-settlement-asset'; import { useExplorerSettlementAssetForMarketQuery } from '../__generated__/Explorer-settlement-asset';
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers'; import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import type { ExplorerSettlementAssetForMarketQuery } from '../__generated__/Explorer-settlement-asset'; import type { ExplorerSettlementAssetForMarketQuery } from '../__generated__/Explorer-settlement-asset';
import type { VegaSide } from './liquidity-provision-details-row'; import type { VegaSide } from './liquidity-provision-details-row';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import type { LiquiditySubmission } from '../tx-liquidity-submission'; import type { LiquiditySubmission } from '../tx-liquidity-submission';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
interface JSONOracleDataProps { interface JSONOracleDataProps {
payload: string; payload: string;

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { NestedDataList } from '../../../nested-data-list'; import { NestedDataList } from '../../../nested-data-list';
import { OpenOraclePrices } from './open-oracle/open-oracle-prices'; import { OpenOraclePrices } from './open-oracle/open-oracle-prices';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { CopyWithTooltip } from '@vegaprotocol/ui-toolkit'; import { CopyWithTooltip } from '@vegaprotocol/ui-toolkit';
import { TableRow } from '../../../../table'; import { TableRow } from '../../../../table';
import { TruncateInline } from '../../../../truncate/truncate'; import { TruncateInline } from '../../../../truncate/truncate';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table'; import { TableRow, TableCell } from '../../../table';
import { BlockLink, PartyLink } from '../../../links/'; import { BlockLink, PartyLink } from '../../../links/';
import { TimeAgo } from '../../../time-ago'; import { TimeAgo } from '../../../time-ago';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { Table, TableRow, TableHeader, TableCell } from '../../../table'; import { Table, TableRow, TableHeader, TableCell } from '../../../table';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import zip from 'lodash/zip'; import zip from 'lodash/zip';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { Table, TableRow, TableHeader, TableCell } from '../../../table'; import { Table, TableRow, TableHeader, TableCell } from '../../../table';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer'; import type { components } from '../../../../../types/explorer';
import { Table, TableRow, TableHeader, TableCell } from '../../../table'; import { Table, TableRow, TableHeader, TableCell } from '../../../table';
import { getValues } from './bound-factors'; import { getValues } from './bound-factors';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { Icon, Tooltip } from '@vegaprotocol/ui-toolkit'; import { Icon, Tooltip } from '@vegaprotocol/ui-toolkit';
import { PartyLink } from '../../../../links'; import { PartyLink } from '../../../../links';
import { import {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { Icon } from '@vegaprotocol/ui-toolkit'; import { Icon } from '@vegaprotocol/ui-toolkit';
import EpochOverview from '../../../../epoch-overview/epoch'; import EpochOverview from '../../../../epoch-overview/epoch';
import { useExplorerFutureEpochQuery } from '../../../../epoch-overview/__generated__/Epoch'; import { useExplorerFutureEpochQuery } from '../../../../epoch-overview/__generated__/Epoch';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { AssetLink, MarketLink } from '../../../../links'; import { AssetLink, MarketLink } from '../../../../links';
import { headerClasses, wrapperClasses } from '../transfer-details'; import { headerClasses, wrapperClasses } from '../transfer-details';
import type { components } from '../../../../../../types/explorer'; import type { components } from '../../../../../../types/explorer';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { import type {
BatchCancellationInstruction, BatchCancellationInstruction,
BatchInstruction, BatchInstruction,

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';
import { TableWithTbody } from '../../table'; import { TableWithTbody } from '../../table';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';
import { TableCell, TableRow, TableWithTbody } from '../../table'; import { TableCell, TableRow, TableWithTbody } from '../../table';
import { BlockLink } from '../../links'; import { BlockLink } from '../../links';

View File

@ -1,6 +1,7 @@
import { useMemo } from 'react'; import { useMemo } from 'react';
import { DATA_SOURCES } from '../../../config'; import { DATA_SOURCES } from '../../../config';
import { t, useFetch } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { useFetch } from '@vegaprotocol/react-helpers';
import { TxDetailsOrder } from './tx-order'; import { TxDetailsOrder } from './tx-order';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { BlockLink, NodeLink } from '../../links/'; import { BlockLink, NodeLink } from '../../links/';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links'; import { MarketLink } from '../../links';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { MarketLink } from '../../links'; import { MarketLink } from '../../links';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';
import { TableCell, TableRow, TableWithTbody } from '../../table'; import { TableCell, TableRow, TableWithTbody } from '../../table';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links/'; import { MarketLink } from '../../links/';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links'; import { MarketLink } from '../../links';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links/'; import { MarketLink } from '../../links/';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links/'; import { MarketLink } from '../../links/';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';
import { TableCell, TableRow, TableWithTbody } from '../../table'; import { TableCell, TableRow, TableWithTbody } from '../../table';
import { MarketLink } from '../../links'; import { MarketLink } from '../../links';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { sharedHeaderProps, TxDetailsShared } from './shared/tx-details-shared'; import { sharedHeaderProps, TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response'; import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared'; import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,5 +1,5 @@
import { useState } from 'react'; import { useState } from 'react';
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import get from 'lodash/get'; import get from 'lodash/get';
import { Select } from '@vegaprotocol/ui-toolkit'; import { Select } from '@vegaprotocol/ui-toolkit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { TendermintUnconfirmedTransactionsResponse } from '../../routes/txs/tendermint-unconfirmed-transactions-response.d'; import type { TendermintUnconfirmedTransactionsResponse } from '../../routes/txs/tendermint-unconfirmed-transactions-response.d';
interface TxsProps { interface TxsProps {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../types/explorer'; import type { components } from '../../../types/explorer';
interface TxOrderTypeProps { interface TxOrderTypeProps {

View File

@ -1,7 +1,8 @@
import React from 'react'; import React from 'react';
import { FixedSizeList as List } from 'react-window'; import { FixedSizeList as List } from 'react-window';
import InfiniteLoader from 'react-window-infinite-loader'; import InfiniteLoader from 'react-window-infinite-loader';
import { t, useScreenDimensions } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { useScreenDimensions } from '@vegaprotocol/react-helpers';
import { TxsInfiniteListItem } from './txs-infinite-list-item'; import { TxsInfiniteListItem } from './txs-infinite-list-item';
import type { BlockExplorerTransactionResult } from '../../routes/types/block-explorer-response'; import type { BlockExplorerTransactionResult } from '../../routes/types/block-explorer-response';
import EmptyList from '../empty-list/empty-list'; import EmptyList from '../empty-list/empty-list';

View File

@ -3,7 +3,8 @@ import { RenderFetched } from '../render-fetched';
import { TruncatedLink } from '../truncate/truncated-link'; import { TruncatedLink } from '../truncate/truncated-link';
import { TxOrderType } from './tx-order-type'; import { TxOrderType } from './tx-order-type';
import { Table, TableRow, TableCell } from '../table'; import { Table, TableRow, TableCell } from '../table';
import { t, useFetch } from '@vegaprotocol/react-helpers'; import { t } from '@vegaprotocol/i18n';
import { useFetch } from '@vegaprotocol/react-helpers';
import type { BlockExplorerTransactions } from '../../routes/types/block-explorer-response'; import type { BlockExplorerTransactions } from '../../routes/types/block-explorer-response';
import isNumber from 'lodash/isNumber'; import isNumber from 'lodash/isNumber';
import { ChainResponseCode } from './details/chain-response-code/chain-reponse.code'; import { ChainResponseCode } from './details/chain-response-code/chain-reponse.code';

Some files were not shown because too many files have changed in this diff Show More