@huma-finance/widgets 0.0.61-beta.544 → 0.0.61-beta.547
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/cjs/index.cjs
CHANGED
|
@@ -6303,6 +6303,7 @@ function PointsEarned(_ref) {
|
|
|
6303
6303
|
const theme = material.useTheme();
|
|
6304
6304
|
const isDev = shared.checkIsDev();
|
|
6305
6305
|
const dispatch = reactRedux.useDispatch();
|
|
6306
|
+
const reset = utils.useResetAtom(webShared.txAtom);
|
|
6306
6307
|
const {
|
|
6307
6308
|
account,
|
|
6308
6309
|
chainId
|
|
@@ -6366,6 +6367,11 @@ function PointsEarned(_ref) {
|
|
|
6366
6367
|
};
|
|
6367
6368
|
updateWalletPoints();
|
|
6368
6369
|
}, [account, chainId, dispatch, isDev, pointsTestnetExperience, transactionHash, walletOwnership]);
|
|
6370
|
+
const handleCloseModal = React.useCallback(() => {
|
|
6371
|
+
reset();
|
|
6372
|
+
dispatch(resetState());
|
|
6373
|
+
handleAction();
|
|
6374
|
+
}, [dispatch, handleAction, reset]);
|
|
6369
6375
|
const styles = {
|
|
6370
6376
|
wrapper: material.css(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteral(["\n height: 518px;\n position: relative;\n "]))),
|
|
6371
6377
|
congrats: material.css(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n margin: ", ";\n "])), theme.spacing(-4, -4.5, 0, -4.5)),
|
|
@@ -6413,7 +6419,7 @@ function PointsEarned(_ref) {
|
|
|
6413
6419
|
}), " for", ' ', monthText, " straight. Plus, If you keep your investment till after", ' ', monthText, ", you\u2019ll gain extra points daily."]
|
|
6414
6420
|
}), jsxRuntime.jsx(BottomButton, {
|
|
6415
6421
|
variant: "contained",
|
|
6416
|
-
onClick:
|
|
6422
|
+
onClick: handleCloseModal,
|
|
6417
6423
|
children: "GREAT"
|
|
6418
6424
|
})]
|
|
6419
6425
|
});
|