@loafmarkets/ui 0.1.331 → 0.1.333
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1953,8 +1953,9 @@ var Orderbook = React5.forwardRef(
|
|
|
1953
1953
|
bidCumDepths[i] = acc;
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
const
|
|
1957
|
-
const
|
|
1956
|
+
const combinedMaxCumDepth = Math.max(1, ...askCumDepths, ...bidCumDepths);
|
|
1957
|
+
const askMaxCumDepth = combinedMaxCumDepth;
|
|
1958
|
+
const bidMaxCumDepth = combinedMaxCumDepth;
|
|
1958
1959
|
const midClass = midChangePercent == null ? "text-white" : midChangePercent >= 0 ? "text-[#0ecb81]" : "text-[#f6465d]";
|
|
1959
1960
|
const tradeFiltered = trades.filter((t) => tradeFilter === "all" || t.type === tradeFilter);
|
|
1960
1961
|
const layoutProps = {
|
|
@@ -13557,6 +13558,7 @@ function PortfolioActivityPanel({
|
|
|
13557
13558
|
cancellingOrderId = null,
|
|
13558
13559
|
compactPositions = false,
|
|
13559
13560
|
defaultTab,
|
|
13561
|
+
onTabChange,
|
|
13560
13562
|
pageSize = ACTIVITY_PAGE_SIZE_DEFAULT,
|
|
13561
13563
|
blockExplorerBaseUrl: _blockExplorerBaseUrl = "https://sepolia.basescan.org/tx",
|
|
13562
13564
|
className,
|
|
@@ -13686,6 +13688,7 @@ function PortfolioActivityPanel({
|
|
|
13686
13688
|
const handleTabChange = (tab) => {
|
|
13687
13689
|
setActiveTab(tab);
|
|
13688
13690
|
setCurrentPage(0);
|
|
13691
|
+
onTabChange?.(tab);
|
|
13689
13692
|
};
|
|
13690
13693
|
const activeDataLength = (() => {
|
|
13691
13694
|
switch (activeTab) {
|