@huma-finance/widgets 0.0.74 → 0.0.75-beta.973

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 CHANGED
@@ -182620,8 +182620,8 @@ function SolanaLendSupply({
182620
182620
  seniorLenderApproved: pr,
182621
182621
  juniorLenderApproved: hr,
182622
182622
  loading: Ar
182623
- } = useLenderAccounts(ar.chainId, ar.poolName), [gr, yr] = useTokenAccount(ar), { step: Sr, errorMessage: Ir } = useAppSelector(selectWidgetState), xr = useAppSelector(selectWidgetLoggingContext), [Cr, Br] = useState(), Pr = () => {
182624
- xr.logAction("ExitFlow", {}), cr();
182623
+ } = useLenderAccounts(ar.chainId, ar.poolName), [gr, yr] = useTokenAccount(ar), { step: Sr, errorMessage: Ir } = useAppSelector(selectWidgetState), xr = useAppSelector(selectWidgetLoggingContext), [Cr, Br] = useState(), Pr = (Mr) => {
182624
+ xr.logAction("ExitFlow", {}), cr(Mr);
182625
182625
  };
182626
182626
  return useEffect(() => {
182627
182627
  if (!Sr && !Ar && !yr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.74",
3
+ "version": "0.0.75-beta.973+4561ec5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,9 +22,9 @@
22
22
  "@ethersproject/contracts": "^5.7.0",
23
23
  "@ethersproject/experimental": "^5.7.0",
24
24
  "@ethersproject/units": "^5.6.0",
25
- "@huma-finance/sdk": "^0.0.74",
26
- "@huma-finance/shared": "^0.0.74",
27
- "@huma-finance/web-shared": "^0.0.74",
25
+ "@huma-finance/sdk": "^0.0.75-beta.973+4561ec5",
26
+ "@huma-finance/shared": "^0.0.75-beta.973+4561ec5",
27
+ "@huma-finance/web-shared": "^0.0.75-beta.973+4561ec5",
28
28
  "@mui/x-date-pickers": "^5.0.7",
29
29
  "@notifi-network/notifi-frontend-client": "^1.1.2",
30
30
  "@notifi-network/notifi-react": "^1.1.2",
@@ -190,5 +190,5 @@
190
190
  "optionalDependencies": {
191
191
  "encoding": "^0.1.13"
192
192
  },
193
- "gitHead": "b43a4954cc849265b3c7fe36291c682f0168e8cc"
193
+ "gitHead": "4561ec534aa26feb63e7d0c1c8502f2ae8190643"
194
194
  }
@@ -73,9 +73,9 @@ export function SolanaLendSupply({
73
73
  const loggingHelper = useAppSelector(selectWidgetLoggingContext)
74
74
  const [selectedTranche, setSelectedTranche] = useState<TrancheType>()
75
75
 
76
- const handleCloseFlow = () => {
76
+ const handleCloseFlow = (options?: CloseModalOptions) => {
77
77
  loggingHelper.logAction('ExitFlow', {})
78
- handleClose()
78
+ handleClose(options)
79
79
  }
80
80
 
81
81
  useEffect(() => {