@loafmarkets/ui 0.1.332 → 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 +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -918,12 +918,13 @@ type PortfolioActivityPanelProps = {
|
|
|
918
918
|
cancellingOrderId?: number | null;
|
|
919
919
|
compactPositions?: boolean;
|
|
920
920
|
defaultTab?: ActivityTabId;
|
|
921
|
+
onTabChange?: (tab: ActivityTabId) => void;
|
|
921
922
|
pageSize?: number;
|
|
922
923
|
blockExplorerBaseUrl?: string;
|
|
923
924
|
className?: string;
|
|
924
925
|
style?: React.CSSProperties;
|
|
925
926
|
};
|
|
926
|
-
declare function PortfolioActivityPanel({ positions, showPositionsTab, showSubscriptionsTab, onPositionClick, onClosePosition, offeringOrders, openOrders, orderHistory, tradeHistory, transfers, onCancelOrder, onCancelAllOrders, onAmendOrder, cancellingOrderId, compactPositions, defaultTab, pageSize, blockExplorerBaseUrl: _blockExplorerBaseUrl, className, style, }: PortfolioActivityPanelProps): react_jsx_runtime.JSX.Element;
|
|
927
|
+
declare function PortfolioActivityPanel({ positions, showPositionsTab, showSubscriptionsTab, onPositionClick, onClosePosition, offeringOrders, openOrders, orderHistory, tradeHistory, transfers, onCancelOrder, onCancelAllOrders, onAmendOrder, cancellingOrderId, compactPositions, defaultTab, onTabChange, pageSize, blockExplorerBaseUrl: _blockExplorerBaseUrl, className, style, }: PortfolioActivityPanelProps): react_jsx_runtime.JSX.Element;
|
|
927
928
|
|
|
928
929
|
type SelectorItem = {
|
|
929
930
|
readonly tokenName: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -918,12 +918,13 @@ type PortfolioActivityPanelProps = {
|
|
|
918
918
|
cancellingOrderId?: number | null;
|
|
919
919
|
compactPositions?: boolean;
|
|
920
920
|
defaultTab?: ActivityTabId;
|
|
921
|
+
onTabChange?: (tab: ActivityTabId) => void;
|
|
921
922
|
pageSize?: number;
|
|
922
923
|
blockExplorerBaseUrl?: string;
|
|
923
924
|
className?: string;
|
|
924
925
|
style?: React.CSSProperties;
|
|
925
926
|
};
|
|
926
|
-
declare function PortfolioActivityPanel({ positions, showPositionsTab, showSubscriptionsTab, onPositionClick, onClosePosition, offeringOrders, openOrders, orderHistory, tradeHistory, transfers, onCancelOrder, onCancelAllOrders, onAmendOrder, cancellingOrderId, compactPositions, defaultTab, pageSize, blockExplorerBaseUrl: _blockExplorerBaseUrl, className, style, }: PortfolioActivityPanelProps): react_jsx_runtime.JSX.Element;
|
|
927
|
+
declare function PortfolioActivityPanel({ positions, showPositionsTab, showSubscriptionsTab, onPositionClick, onClosePosition, offeringOrders, openOrders, orderHistory, tradeHistory, transfers, onCancelOrder, onCancelAllOrders, onAmendOrder, cancellingOrderId, compactPositions, defaultTab, onTabChange, pageSize, blockExplorerBaseUrl: _blockExplorerBaseUrl, className, style, }: PortfolioActivityPanelProps): react_jsx_runtime.JSX.Element;
|
|
927
928
|
|
|
928
929
|
type SelectorItem = {
|
|
929
930
|
readonly tokenName: string;
|
package/dist/index.js
CHANGED
|
@@ -13584,6 +13584,7 @@ function PortfolioActivityPanel({
|
|
|
13584
13584
|
cancellingOrderId = null,
|
|
13585
13585
|
compactPositions = false,
|
|
13586
13586
|
defaultTab,
|
|
13587
|
+
onTabChange,
|
|
13587
13588
|
pageSize = ACTIVITY_PAGE_SIZE_DEFAULT,
|
|
13588
13589
|
blockExplorerBaseUrl: _blockExplorerBaseUrl = "https://sepolia.basescan.org/tx",
|
|
13589
13590
|
className,
|
|
@@ -13713,6 +13714,7 @@ function PortfolioActivityPanel({
|
|
|
13713
13714
|
const handleTabChange = (tab) => {
|
|
13714
13715
|
setActiveTab(tab);
|
|
13715
13716
|
setCurrentPage(0);
|
|
13717
|
+
onTabChange?.(tab);
|
|
13716
13718
|
};
|
|
13717
13719
|
const activeDataLength = (() => {
|
|
13718
13720
|
switch (activeTab) {
|