@dashadmin/dash-admin 1.3.74-srcfree.2 → 1.3.74-srcfree.4

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.
@@ -19,7 +19,7 @@ var __async = (__this, __arguments, generator) => {
19
19
  });
20
20
  };
21
21
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
22
- import { useCallback, useEffect, useState } from "react";
22
+ import { useCallback, useEffect, useRef, useState } from "react";
23
23
  import { Loading, useNotify, useRecordContext, useRefresh, useTranslate } from "react-admin";
24
24
  import {
25
25
  Alert,
@@ -81,7 +81,9 @@ const statusColor = (status) => {
81
81
  };
82
82
  const TenancyPlanPanel = ({ tenancyId }) => {
83
83
  var _a, _b, _c, _d, _e, _f;
84
- const { axios } = useAxios();
84
+ const { axios: freshAxios } = useAxios();
85
+ const axiosRef = useRef(freshAxios);
86
+ const axios = axiosRef.current;
85
87
  const notify = useNotify();
86
88
  const refresh = useRefresh();
87
89
  const translate = useTranslate();
@@ -101,7 +103,7 @@ const TenancyPlanPanel = ({ tenancyId }) => {
101
103
  } catch (e) {
102
104
  setError(((_d2 = (_c2 = e == null ? void 0 : e.response) == null ? void 0 : _c2.data) == null ? void 0 : _d2.message) || "Could not load the plan");
103
105
  }
104
- }), [axios, tenancyId]);
106
+ }), [tenancyId]);
105
107
  useEffect(() => {
106
108
  load();
107
109
  }, [load]);
@@ -25,7 +25,7 @@ import { useNotify, useRedirect } from "react-admin";
25
25
  import useAxios from "../hooks/axios";
26
26
  import { FullLayoutMarkup } from "../default-theme";
27
27
  import HomeIcon from "@mui/icons-material/Home";
28
- import { clearAllCookies } from "../../src/utils/cookies";
28
+ import { clearAllCookies } from "../utils/cookies";
29
29
  import { dashStorage } from "dash-utils";
30
30
  const RecoverPassword = ({}) => {
31
31
  const [email, setEmail] = useState("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashadmin/dash-admin",
3
- "version": "1.3.74-srcfree.2",
3
+ "version": "1.3.74-srcfree.4",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -39,11 +39,11 @@
39
39
  "@rollup/plugin-node-resolve": "latest",
40
40
  "@rollup/plugin-replace": "latest",
41
41
  "@rollup/plugin-typescript": "latest",
42
- "@dashadmin/dash-admin-state": "1.3.74-srcfree.2",
43
- "@dashadmin/dash-auto-admin": "1.3.74-srcfree.2",
44
- "@dashadmin/dash-constants": "1.3.74-srcfree.2",
45
- "@dashadmin/dash-dialog": "1.3.74-srcfree.2",
46
- "@dashadmin/dash-styles": "1.3.74-srcfree.2",
42
+ "@dashadmin/dash-admin-state": "1.3.74-srcfree.4",
43
+ "@dashadmin/dash-auto-admin": "1.3.74-srcfree.4",
44
+ "@dashadmin/dash-constants": "1.3.74-srcfree.4",
45
+ "@dashadmin/dash-dialog": "1.3.74-srcfree.4",
46
+ "@dashadmin/dash-styles": "1.3.74-srcfree.4",
47
47
  "framer-motion": "latest",
48
48
  "prop-types": "latest",
49
49
  "query-string": "latest",
@@ -62,11 +62,11 @@
62
62
  "rollup-plugin-dts": "latest",
63
63
  "rollup-plugin-peer-deps-external": "latest",
64
64
  "rollup-plugin-svg": "latest",
65
- "@dashadmin/dash-modal": "1.3.74-srcfree.2",
66
- "@dashadmin/dash-components": "1.3.74-srcfree.2",
67
- "@dashadmin/dash-axios-hook": "1.3.74-srcfree.2",
68
- "@dashadmin/dash-utils": "1.3.74-srcfree.2",
69
- "@dashadmin/dash-auth": "1.3.74-srcfree.2"
65
+ "@dashadmin/dash-modal": "1.3.74-srcfree.4",
66
+ "@dashadmin/dash-components": "1.3.74-srcfree.4",
67
+ "@dashadmin/dash-axios-hook": "1.3.74-srcfree.4",
68
+ "@dashadmin/dash-utils": "1.3.74-srcfree.4",
69
+ "@dashadmin/dash-auth": "1.3.74-srcfree.4"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@babel/core": "latest",
@@ -79,8 +79,8 @@
79
79
  "@types/react-dom": "latest",
80
80
  "@zerollup/ts-transform-paths": "latest",
81
81
  "babel-loader": "latest",
82
- "@dashadmin/dash-eslint": "1.3.74-srcfree.2",
83
- "@dashadmin/dash-tsconfig": "1.3.74-srcfree.2",
82
+ "@dashadmin/dash-eslint": "1.3.74-srcfree.4",
83
+ "@dashadmin/dash-tsconfig": "1.3.74-srcfree.4",
84
84
  "eslint": "latest",
85
85
  "eslint-config-airbnb": "latest",
86
86
  "eslint-config-airbnb-typescript": "latest",
@@ -94,7 +94,7 @@
94
94
  "eslint-plugin-prettier": "latest",
95
95
  "eslint-plugin-react": "latest",
96
96
  "eslint-plugin-react-hooks": "latest",
97
- "@dashadmin/dash-prettier": "1.3.74-srcfree.2",
97
+ "@dashadmin/dash-prettier": "1.3.74-srcfree.4",
98
98
  "query-string": "latest",
99
99
  "react-dom": "19.2.8",
100
100
  "rollup": "latest",