tek-wallet 0.0.509 → 0.0.510

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.
@@ -82,7 +82,7 @@ var Activities = (0, react_1.forwardRef)(function (props, ref) {
82
82
  close();
83
83
  handleOnClose();
84
84
  };
85
- return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { disableSwipe: true, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: handleOnClose, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Activities", overrideBack: handleBack }), children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: { height: "100%", paddingTop: 0 }, children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { ref: swiperRef, swiperProps: {
85
+ return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { disableSwipe: true, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: handleOnClose, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Activities", overrideBack: handleBack }), children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: { height: "100%", paddingTop: 0 }, children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { ref: swiperRef, tabParamName: "activity-tab", swiperProps: {
86
86
  slidesPerView: 1,
87
87
  spaceBetween: 40,
88
88
  }, tabs: activityTypes === null || activityTypes === void 0 ? void 0 : activityTypes.map(function (type, index) {
@@ -37,7 +37,7 @@ var SwiperControlled = (0, react_2.forwardRef)(function (props, ref) {
37
37
  var router = (0, useCustomRouter_1.default)();
38
38
  var pathname = (0, navigation_2.usePathname)();
39
39
  var searchParams = (0, navigation_1.useSearchParams)();
40
- var tabParamName = props.tabParamName || "sw-tab";
40
+ var tabParamName = props.tabParamName || "";
41
41
  var initialTab = searchParams.get(tabParamName);
42
42
  var _a = (0, react_2.useState)(initialTab ? +initialTab : props.initialActiveTab || 0), activeTab = _a[0], setActiveTab = _a[1];
43
43
  var slideTo = function (index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.509",
3
+ "version": "0.0.510",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",