tek-wallet 0.0.726 → 0.0.728
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) {
|
|
@@ -49,8 +49,9 @@ function WealthDeposit(props) {
|
|
|
49
49
|
var _a, _b;
|
|
50
50
|
var drawerRef = (0, react_1.useRef)(null);
|
|
51
51
|
var handleOnClose = function () {
|
|
52
|
-
var _a;
|
|
52
|
+
var _a, _b;
|
|
53
53
|
(_a = drawerRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
54
|
+
(_b = props.onClose) === null || _b === void 0 ? void 0 : _b.call(props);
|
|
54
55
|
};
|
|
55
56
|
var close = function () {
|
|
56
57
|
var _a;
|