@kodiak-finance/orderly-trading-leaderboard 2.8.22-beta.0 → 2.8.22-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { subDays, parseISO, differenceInDays, isBefore, addDays, isAfter, isWithinInterval, format } from 'date-fns';
|
|
2
2
|
import { createContext, lazy, memo, useState, useRef, useCallback, useEffect, useMemo, useContext, Suspense } from 'react';
|
|
3
3
|
import { useTranslation, i18n, Trans } from '@kodiak-finance/orderly-i18n';
|
|
4
|
+
import { useAccount, useConfig, useQuery, useInfiniteQuery, useSWR, useTrack, usePrivateQuery, noCacheConfig, useMemoizedFn, useMutation } from '@kodiak-finance/orderly-hooks';
|
|
4
5
|
import { useEmblaCarousel, ChevronLeftIcon, ChevronRightIcon, cn, Text, useScreen, DataTable, Flex, Spinner, usePagination, Box, Select, Button, DataFilter, Input, CloseCircleFillIcon, Divider, ScrollIndicator as ScrollIndicator$1, Tabs, TabPanel, toast, Tooltip, InfoCircleIcon } from '@kodiak-finance/orderly-ui';
|
|
5
6
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
-
import { useAccount, useConfig, useQuery, useInfiniteQuery, useSWR, useTrack, usePrivateQuery, noCacheConfig, useMemoizedFn, useMutation } from '@kodiak-finance/orderly-hooks';
|
|
7
7
|
import { TrendingUp, TrendingDown, Wallet, DollarSign, BarChart3 } from 'lucide-react';
|
|
8
8
|
import { TrackerEventName, AccountStatusEnum, EMPTY_LIST } from '@kodiak-finance/orderly-types';
|
|
9
9
|
import { sortWith, descend, difference } from 'ramda';
|
|
@@ -244,6 +244,7 @@ var init_column = __esm({
|
|
|
244
244
|
init_util();
|
|
245
245
|
useRankingColumns = (fields, address, enableSort, type) => {
|
|
246
246
|
const { t } = useTranslation();
|
|
247
|
+
const brokerId = useConfig("brokerId");
|
|
247
248
|
const { isMobile } = useScreen();
|
|
248
249
|
return useMemo(() => {
|
|
249
250
|
const columns = [
|
|
@@ -301,7 +302,7 @@ var init_column = __esm({
|
|
|
301
302
|
"a",
|
|
302
303
|
{
|
|
303
304
|
className: "oui-flex oui-items-start oui-gap-1",
|
|
304
|
-
href: `https://orderly-dashboard.orderly.network/address/${value}?broker_id=${record.broker_id}`,
|
|
305
|
+
href: `https://orderly-dashboard.orderly.network/address/${value}${record.broker_id || brokerId ? `?broker_id=${record.broker_id || brokerId}` : ""}`,
|
|
305
306
|
target: "_blank",
|
|
306
307
|
rel: "noreferrer",
|
|
307
308
|
children: [
|
|
@@ -5900,6 +5901,7 @@ function getCurrentAddressRowKey2(address) {
|
|
|
5900
5901
|
}
|
|
5901
5902
|
var useRankingColumns2 = (fields, address, enableSort, type) => {
|
|
5902
5903
|
const { t } = useTranslation();
|
|
5904
|
+
const brokerId = useConfig("brokerId");
|
|
5903
5905
|
const { isMobile } = useScreen();
|
|
5904
5906
|
return useMemo(() => {
|
|
5905
5907
|
const columns = [
|
|
@@ -5957,7 +5959,7 @@ var useRankingColumns2 = (fields, address, enableSort, type) => {
|
|
|
5957
5959
|
"a",
|
|
5958
5960
|
{
|
|
5959
5961
|
className: "oui-flex oui-items-start oui-gap-1",
|
|
5960
|
-
href: `https://orderly-dashboard.orderly.network/address/${value}?broker_id=${record.broker_id}`,
|
|
5962
|
+
href: `https://orderly-dashboard.orderly.network/address/${value}${record.broker_id || brokerId ? `?broker_id=${record.broker_id || brokerId}` : ""}`,
|
|
5961
5963
|
target: "_blank",
|
|
5962
5964
|
rel: "noreferrer",
|
|
5963
5965
|
children: [
|