eleven-solutions-common-website-unique-web 3.0.17 → 3.0.18

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.
@@ -131,7 +131,8 @@ const TaxonomyForm = () => {
131
131
  }
132
132
  });
133
133
  fetchIsMultiple();
134
- }, [type]);
134
+ // }, [type]);
135
+ }, []);
135
136
  const handleCancelClick = () => {
136
137
  setType("");
137
138
  setCode("");
@@ -63,27 +63,6 @@ export const fetchUserByIdApi = (userId) => __awaiter(void 0, void 0, void 0, fu
63
63
  return false;
64
64
  }
65
65
  });
66
- // export const deleteUserApi = async (id: string) => {
67
- // const token = cookies.get("token");
68
- // try {
69
- // const response = await axios.delete(`${apiUrl}/login/delete`, {
70
- // headers: {
71
- // Authorization: `Bearer ${token}`,
72
- // "Content-Type": "application/json",
73
- // },
74
- // // data: {
75
- // // id,
76
- // // },
77
- // params: {
78
- // id,
79
- // },
80
- // });
81
- // return response.data;
82
- // } catch (error) {
83
- // console.error("Error deleting lang:", error);
84
- // throw error;
85
- // }
86
- // };
87
66
  export const deleteUserApi = (id) => __awaiter(void 0, void 0, void 0, function* () {
88
67
  const token = cookies.get("token");
89
68
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "3.0.17",
3
+ "version": "3.0.18",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -159,7 +159,8 @@ const TaxonomyForm = () => {
159
159
  };
160
160
 
161
161
  fetchIsMultiple();
162
- }, [type]);
162
+ // }, [type]);
163
+ }, []);
163
164
 
164
165
  const handleCancelClick = () => {
165
166
  setType("");
@@ -70,29 +70,6 @@ export const fetchUserByIdApi = async (userId: string) => {
70
70
  }
71
71
  };
72
72
 
73
- // export const deleteUserApi = async (id: string) => {
74
- // const token = cookies.get("token");
75
-
76
- // try {
77
- // const response = await axios.delete(`${apiUrl}/login/delete`, {
78
- // headers: {
79
- // Authorization: `Bearer ${token}`,
80
- // "Content-Type": "application/json",
81
- // },
82
- // // data: {
83
- // // id,
84
- // // },
85
- // params: {
86
- // id,
87
- // },
88
- // });
89
- // return response.data;
90
- // } catch (error) {
91
- // console.error("Error deleting lang:", error);
92
- // throw error;
93
- // }
94
- // };
95
-
96
73
  export const deleteUserApi = async (id: string) => {
97
74
  const token = cookies.get("token");
98
75