@campxdev/shared 1.10.33 → 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,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
|
</>
|
|
@@ -25,10 +25,23 @@ const freshDeskInnerHtml = `
|
|
|
25
25
|
|
|
26
26
|
const getbeamerInnerHtml = `
|
|
27
27
|
var beamer_config = {
|
|
28
|
-
product_id : "ThEQzGKL56777"
|
|
28
|
+
product_id : "ThEQzGKL56777",
|
|
29
|
+
|
|
29
30
|
};
|
|
30
31
|
`
|
|
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
|
+
|
|
32
45
|
const getInnerHtml = (user: any) => {
|
|
33
46
|
if (isLocalHost) {
|
|
34
47
|
return ''
|
|
@@ -82,14 +95,13 @@ export default function Helmet({
|
|
|
82
95
|
{extraMetaTags}
|
|
83
96
|
<link rel="icon" href={favicon} />
|
|
84
97
|
<link rel="apple-touch-icon" href={favicon} />
|
|
98
|
+
<style>{getBeamerStyles}</style>
|
|
99
|
+
<script>{getbeamerInnerHtml}</script>
|
|
85
100
|
{isDevelopment && (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
src="https://app.getbeamer.com/js/beamer-embed.js"
|
|
91
|
-
></script>
|
|
92
|
-
</>
|
|
101
|
+
<script
|
|
102
|
+
type="text/javascript"
|
|
103
|
+
src="https://app.getbeamer.com/js/beamer-embed.js"
|
|
104
|
+
></script>
|
|
93
105
|
)}
|
|
94
106
|
|
|
95
107
|
{/* {!isLocalHost && (
|