@campxdev/campx-web-utils 0.2.1 → 0.2.3

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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@campxdev/campx-web-utils",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
7
- "@campxdev/react-blueprint": "^1.1.9",
7
+ "@campxdev/react-blueprint": "^1.1.11",
8
8
  "@hookform/resolvers": "^3.9.0",
9
9
  "@mui/x-date-pickers": "^7.12.1",
10
10
  "@testing-library/jest-dom": "^5.14.1",
@@ -1,8 +1,7 @@
1
1
  import Axios, { InternalAxiosRequestConfig } from 'axios';
2
2
  import Cookies from 'js-cookie';
3
3
  import { ApplicationStore } from '../context/application-store';
4
-
5
- const isDevelopment = process.env.NODE_ENV == 'development';
4
+ import { isDevelopment } from '../utils/export';
6
5
 
7
6
  const tenantCode =
8
7
  window.location.hostname === 'localhost'
@@ -55,7 +54,6 @@ axios.interceptors.request.use(
55
54
 
56
55
  axios.interceptors.response.use(
57
56
  function (response) {
58
- console.log(response);
59
57
  if (
60
58
  response.config.method &&
61
59
  ['put', 'post', 'delete', 'patch'].includes(response.config.method) &&
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button,
3
- CustomDialog,
3
+ Dialog,
4
4
  InternalServerError,
5
5
  NoInterneConnection,
6
6
  PageNotFound,
@@ -119,7 +119,7 @@ const UnAuth = () => {
119
119
  >
120
120
  Click Here To Login
121
121
  </Button>
122
- <CustomDialog
122
+ <Dialog
123
123
  open={isModalOpen}
124
124
  onClose={() => setModalOpen(false)}
125
125
  content={({ close }) => <Login close={close} />}
@@ -1 +1,4 @@
1
1
  export * from './breadcrumbs';
2
+ export const isDevelopment =
3
+ process.env.NODE_ENV == 'development' ||
4
+ window.location.hostname === 'localhost';