@campxdev/shared 1.2.3 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -1,4 +1,5 @@
1
1
  import { Box, Menu, Typography } from '@mui/material'
2
+ import Cookies from 'js-cookie'
2
3
  import { useState } from 'react'
3
4
  import { applications } from './applications'
4
5
  import { AppsIcon } from './icons'
@@ -10,6 +11,8 @@ import {
10
11
  StyledLink,
11
12
  } from './styles'
12
13
 
14
+ export const campxTenantKey = Cookies.get('campx_tenant')
15
+
13
16
  const AppsMenu = () => {
14
17
  const [anchorEl, setAnchorEl] = useState<any>(null)
15
18
  const open = Boolean(anchorEl)
@@ -55,7 +58,10 @@ const AppsMenu = () => {
55
58
  </Box>
56
59
  <Box>
57
60
  {applications.map((item, index) => (
58
- <StyledLink href={item.path} key={index}>
61
+ <StyledLink
62
+ href={item.path + `/${campxTenantKey ?? ''}`}
63
+ key={index}
64
+ >
59
65
  <StyledMenuItemContainer
60
66
  key={index}
61
67
  onClick={() => {