tek-wallet 0.0.828 → 0.0.829
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.
|
@@ -68,7 +68,7 @@ var AssetViewHeader = function () {
|
|
|
68
68
|
var theme = (0, mui_1.useTheme)();
|
|
69
69
|
var modalRef = (0, react_1.useRef)(null);
|
|
70
70
|
var offset = (0, TekWalletProvider_1.useWalletSetup)().offset;
|
|
71
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "start", position: "relative",
|
|
71
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "start", position: "relative", px: theme.styleMixins.customPadding.p16, pb: 1, borderBottom: "1px solid ".concat(theme.palette.divider) }), children: [(0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: modalRef, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), { alignItems: "center", justifyContent: "start", textAlign: "center", gap: theme.styleMixins.gaps.g4, py: theme.styleMixins.customPadding.p8 }), theme.styleMixins.value), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1.25rem", height: "1.25rem" }, children: SvgPath_1.WALLET }), (0, compactWalletAddress_1.default)(masterWallet), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "0.625rem", height: "0.625rem" }, children: SvgPath_1.ARROW_DROP_DOWN })] }), direction: DrawerComponent_1.DRAWER_DIRECTION.TOP, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
72
72
|
width: "100%",
|
|
73
73
|
height: "fit-content",
|
|
74
74
|
backgroundColor: "background.default",
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.queryClient = void 0;
|
|
4
4
|
var react_query_1 = require("@tanstack/react-query");
|
|
5
|
+
var DEFAULT_STALE_TIME = 1000 * 30; // 30s: hiển thị nhanh từ cache, vẫn refetch sau đó khi cần
|
|
6
|
+
var DEFAULT_GC_TIME = 1000 * 60 * 60 * 24 * 30; // 30 days: nên >= maxAge của persister
|
|
5
7
|
exports.queryClient = new react_query_1.QueryClient({
|
|
6
8
|
defaultOptions: {
|
|
7
9
|
queries: {
|
|
8
|
-
retry:
|
|
10
|
+
retry: 1,
|
|
9
11
|
retryDelay: 2000,
|
|
10
|
-
staleTime:
|
|
11
|
-
gcTime:
|
|
12
|
+
staleTime: DEFAULT_STALE_TIME,
|
|
13
|
+
gcTime: DEFAULT_GC_TIME,
|
|
14
|
+
refetchOnWindowFocus: false,
|
|
15
|
+
refetchOnMount: false,
|
|
12
16
|
},
|
|
13
17
|
mutations: {
|
|
14
18
|
retry: 0,
|