From 1ab9d2467d2c5bd6c5fbdbcb769cb0f9ad3c1c2f Mon Sep 17 00:00:00 2001 From: iamoskvin Date: Sat, 11 May 2024 11:08:20 +0300 Subject: [PATCH] file rename --- src/api/PoolsData.ts | 2 +- src/components/Pools/index.tsx | 2 +- src/pages/Pool/index.tsx | 2 +- src/pages/PoolDetails/index.tsx | 2 +- src/utils/{dashboard.js => formatNum.js} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/utils/{dashboard.js => formatNum.js} (100%) diff --git a/src/api/PoolsData.ts b/src/api/PoolsData.ts index 6dc4f4c6..f40cad07 100644 --- a/src/api/PoolsData.ts +++ b/src/api/PoolsData.ts @@ -3,7 +3,7 @@ import React, { createContext, useContext, useReducer, useMemo, useCallback, use import { HISTORICAL_POOLS_DATA } from '../apollo/queries' -import { getPercentChange, get2DayPercentChange } from '../utils/dashboard' +import { getPercentChange, get2DayPercentChange } from '../utils/formatNum' import { apiTimeframeOptions } from '../constants/apiTimeframeOptions' import { ApolloClient, NormalizedCacheObject } from '@apollo/client' // import { useWhitelistedTokens } from './Application' diff --git a/src/components/Pools/index.tsx b/src/components/Pools/index.tsx index a87bcb57..f2e08c4f 100644 --- a/src/components/Pools/index.tsx +++ b/src/components/Pools/index.tsx @@ -11,7 +11,7 @@ import { Tooltip as ReactTooltip } from 'react-tooltip' // import { CustomLink } from '../Link' import { Link as CustomLink, Link } from 'react-router-dom' // import { withRouter } from 'react-router-dom' -import { formattedNum, formattedPercent } from '../../utils/dashboard.js' +import { formattedNum, formattedPercent } from '../../utils/formatNum.js' import DoubleTokenLogo from '../DoubleLogo' import FormattedName from '../FormattedName' diff --git a/src/pages/Pool/index.tsx b/src/pages/Pool/index.tsx index e7cfa697..3c9c9715 100644 --- a/src/pages/Pool/index.tsx +++ b/src/pages/Pool/index.tsx @@ -14,7 +14,7 @@ import { ThemedText } from 'theme/components' import { ButtonRow, ErrorContainer, LoadingRows, MainContentWrapper, NetworkIcon, OnlyRewardedSwitcher, OnlyRewardedSwitcherContainer, OnlyRewardedSwitcherLabel, PageHeader, PageWrapper, Panel, PanelTopLight, PanelWrapper, ResponsiveButtonPrimary, ResponsiveButtonTabs, TitleRow } from './styled' import { getAllPools } from 'api/PoolsData' import Pools from 'components/Pools' -import { formattedNum, formattedPercent, get2DayPercentChange, getPercentChange } from 'utils/dashboard' +import { formattedNum, formattedPercent, get2DayPercentChange, getPercentChange } from 'utils/formatNum' import { REWARDS_SELECTOR, STARKNET_REWARDS_API_URL } from 'constants/strkRewards' import { HISTORICAL_GLOBAL_DATA } from 'apollo/queries' import { apiTimeframeOptions } from 'constants/apiTimeframeOptions' diff --git a/src/pages/PoolDetails/index.tsx b/src/pages/PoolDetails/index.tsx index 4274c5ce..f7f08bab 100644 --- a/src/pages/PoolDetails/index.tsx +++ b/src/pages/PoolDetails/index.tsx @@ -5,7 +5,7 @@ import { validateAndParseAddress } from 'starknet' import { AutoColumn } from "components/Column"; import Row, { AutoRow, RowBetween, RowFixed } from "components/Row"; -import { formattedNum, formattedPercent } from "utils/dashboard"; +import { formattedNum, formattedPercent } from "utils/formatNum"; import { getAllPools } from 'api/PoolsData'; import { useDefaultActiveTokens } from 'hooks/Tokens' import { useAccountDetails } from 'hooks/starknet-react' diff --git a/src/utils/dashboard.js b/src/utils/formatNum.js similarity index 100% rename from src/utils/dashboard.js rename to src/utils/formatNum.js