@campxdev/shared 1.6.9 → 1.6.11

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.6.9",
3
+ "version": "1.6.11",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -34,7 +34,7 @@ const AppsMenu = () => {
34
34
 
35
35
  <Menu
36
36
  transitionDuration={150}
37
- elevation={3}
37
+ elevation={2}
38
38
  id="basic-menu"
39
39
  anchorEl={anchorEl}
40
40
  open={open}
@@ -22,7 +22,7 @@ export function LoginForm({ loginUrl }: { loginUrl?: string }) {
22
22
  })
23
23
  Cookies.set('campx_tenant', res?.data?.subDomain)
24
24
  Cookies.set('campx_session_key', res.data?.token)
25
- window.location.reload()
25
+ window.location.href = window.location.origin + `/${res?.data?.subDomain}`
26
26
  } catch (err) {
27
27
  // eslint-disable-next-line no-console
28
28
  console.log(err)
@@ -1,12 +1,12 @@
1
1
  import Cookies from 'js-cookie'
2
- import { useConfirm } from '../components'
3
2
  import axios, { axiosErrorToast } from '../config/axios'
4
3
  import { isDevelopment } from '../constants'
5
4
 
6
5
  export default function logout() {
7
6
  if (isDevelopment) {
8
7
  Cookies.remove('campx_session_key')
9
- window.location.href = window.location.origin + '/campx_dev'
8
+ Cookies.remove('campx_tenant')
9
+ window.location.href = window.location.origin
10
10
  return
11
11
  }
12
12