@campxdev/shared 1.2.0 → 1.2.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -4,7 +4,7 @@ import ImageUpload from './ImageUpload'
4
4
  import FloatingContainer from './FloatingContainer'
5
5
  import TabsContainer from './Tabs/TabsContainer'
6
6
  import { StyledTableContainer } from './StyledTableContainer'
7
- import { SearchBar } from './SearchBar'
7
+ import SearchBar from './SearchBar'
8
8
  import { DrawerButton, DialogButton } from './ModalButtons'
9
9
  import DetailsGrid from './DetailsGrid'
10
10
  import AppHeader from './Layout/Header'
@@ -18,7 +18,7 @@ export default function Providers({ children }: { children: ReactNode }) {
18
18
  const [isInvalid, setIsInvalid] = useState(false)
19
19
 
20
20
  useEffect(() => {
21
- if (campxTenantKey === 'campx_dev') {
21
+ if (campxTenantKey === 'campx_dev' && !urlTenantKey) {
22
22
  window.location.href = window.location.origin + '/campx_dev'
23
23
  }
24
24
 
@@ -79,11 +79,11 @@ function useAuth({ permissionsEndpoint, loginUrl }: AuthParams): AuthResponse {
79
79
  }
80
80
 
81
81
  useEffect(() => {
82
- if (window.location.pathname === '/') {
83
- if (isDevelopment) {
84
- window.location.replace(window.location.origin + '/campx_dev')
85
- }
86
- }
82
+ // if (window.location.pathname === '/') {
83
+ // if (isDevelopment) {
84
+ // window.location.replace(window.location.origin + '/campx_dev')
85
+ // }
86
+ // }
87
87
  appInit()
88
88
  }, [])
89
89