tek-wallet 0.0.724 → 0.0.727

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.
@@ -14,5 +14,5 @@ export interface FeesProps extends Omit<AccordionProps, "children"> {
14
14
  feesStyle?: FeesStyle;
15
15
  estimateReceive?: string | number;
16
16
  }
17
- declare function Fees(props: FeesProps): import("react/jsx-runtime").JSX.Element;
17
+ declare function Fees(props: FeesProps): import("react/jsx-runtime").JSX.Element | null;
18
18
  export default Fees;
@@ -84,7 +84,7 @@ function Fees(props) {
84
84
  var totalfee_in_currency = (0, react_1.useMemo)(function () {
85
85
  return feesData === null || feesData === void 0 ? void 0 : feesData.fee_in_currency;
86
86
  }, [feesData]);
87
- return ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
87
+ return feeCheckedBalance.length > 0 ? ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
88
88
  fontSize: theme.typography.fontSize11,
89
89
  fontWeight: theme.typography.fontWeight500,
90
90
  color: theme.palette.text.black,
@@ -119,7 +119,7 @@ function Fees(props) {
119
119
  fontSize: theme.typography.fontSize16,
120
120
  fontWeight: theme.typography.fontWeight700,
121
121
  color: theme.palette.text.black,
122
- }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] })));
122
+ }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] }))) : null;
123
123
  }
124
124
  exports.default = Fees;
125
125
  var FeeDetails = function (_a) {
@@ -2,6 +2,7 @@ interface IncomeWalletProps {
2
2
  listItemFunction: React.ReactNode[];
3
3
  transactionHistory: React.ReactNode;
4
4
  balanceChart: React.ReactNode;
5
+ header?: React.ReactNode;
5
6
  }
6
7
  export declare const IncomeWallet: (props: IncomeWalletProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export default IncomeWallet;
@@ -22,13 +22,12 @@ var useWalletData_1 = __importDefault(require("../../../hooks/useWalletData"));
22
22
  var ThemeProvider_1 = require("../../../providers/ThemeProvider");
23
23
  var Text_1 = __importDefault(require("../Text"));
24
24
  var ChildPageLayout_1 = __importDefault(require("../../layouts/ChildPageLayout"));
25
- var PageHeader_1 = __importDefault(require("../PageHeader"));
26
25
  var Column_1 = __importDefault(require("../Column"));
27
26
  var Spacer_1 = __importDefault(require("../Spacer"));
28
27
  var IncomeWallet = function (props) {
29
28
  var isInitPasscode = (0, useWalletData_1.default)().isInitPasscode;
30
29
  var theme = (0, ThemeProvider_1.useTheme)();
31
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!isInitPasscode && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: "Please connect your wallet to get asset information" })), !!isInitPasscode && ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, __assign({}, props, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "WealthS" }), children: (0, jsx_runtime_1.jsxs)(Column_1.default, { sx: {
30
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!isInitPasscode && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: "Please connect your wallet to get asset information" })), !!isInitPasscode && ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, __assign({}, props, { header: props.header, children: (0, jsx_runtime_1.jsxs)(Column_1.default, { sx: {
32
31
  paddingLeft: theme.mixins.customPadding.p16,
33
32
  paddingRight: theme.mixins.customPadding.p16,
34
33
  }, children: [props.balanceChart, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.724",
3
+ "version": "0.0.727",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",