@campxdev/shared 1.10.32 → 1.10.34

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.10.32",
3
+ "version": "1.10.34",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -1,9 +1,15 @@
1
- import { Box } from '@mui/material'
1
+ import { Box, styled } from '@mui/material'
2
2
  import UserBox from './UserBox'
3
3
  import CogWheelMenu from './CogWheelMenu'
4
4
  import FreshDeskHelpButton from './FreshDeskHelpButton'
5
5
  import InstitutionsDropDown from '../../../Institutions/InstitutionsDropdown'
6
6
  import SearchButton from '../Search/SearchButton'
7
+ import { NotificationsNoneOutlined } from '@mui/icons-material'
8
+ import { useEffect } from 'react'
9
+
10
+ const StyledBeamerBox = styled(Box)(() => ({
11
+ width: '60px',
12
+ }))
7
13
 
8
14
  export default function HeaderActions({
9
15
  cogWheelMenu,
@@ -15,6 +21,7 @@ export default function HeaderActions({
15
21
  <InstitutionsDropDown />
16
22
  {/* <SearchButton /> */}
17
23
  {/* <FreshDeskHelpButton /> */}
24
+ <StyledBeamerBox></StyledBeamerBox>
18
25
  {cogWheelMenu?.length ? <CogWheelMenu menu={cogWheelMenu} /> : null}
19
26
  <UserBox fullName={fullName} actions={userBoxActions} />
20
27
  </>
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react'
2
2
  import { Helmet as ReactHelmet } from 'react-helmet'
3
+ import { isDevelopment } from '../../constants'
3
4
 
4
5
  const isLocalHost = process.env.NODE_ENV === 'development'
5
6
 
@@ -22,6 +23,25 @@ const freshDeskInnerHtml = `
22
23
 
23
24
  `
24
25
 
26
+ const getbeamerInnerHtml = `
27
+ var beamer_config = {
28
+ product_id : "ThEQzGKL56777",
29
+
30
+ };
31
+ `
32
+
33
+ const getBeamerStyles = `
34
+ #beamerSelector {
35
+ height: 42px;
36
+ width: 42px;
37
+ top: 12px;
38
+ right: 74px;
39
+ box-shadow: none;
40
+ background-color: #121212;
41
+
42
+ }
43
+ `
44
+
25
45
  const getInnerHtml = (user: any) => {
26
46
  if (isLocalHost) {
27
47
  return ''
@@ -75,6 +95,15 @@ export default function Helmet({
75
95
  {extraMetaTags}
76
96
  <link rel="icon" href={favicon} />
77
97
  <link rel="apple-touch-icon" href={favicon} />
98
+ <style>{getBeamerStyles}</style>
99
+ <script>{getbeamerInnerHtml}</script>
100
+ {isDevelopment && (
101
+ <script
102
+ type="text/javascript"
103
+ src="https://app.getbeamer.com/js/beamer-embed.js"
104
+ ></script>
105
+ )}
106
+
78
107
  {/* {!isLocalHost && (
79
108
  <script
80
109
  type="text/javascript"
@@ -118,7 +118,7 @@ export const ProfileApplicationType = [
118
118
  value: 'hostels',
119
119
  },
120
120
  {
121
- label: 'Commute',
122
- value: 'commute',
121
+ label: 'CommuteX',
122
+ value: 'commute_x',
123
123
  },
124
124
  ]